header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Handle Process display and CTRL+C events from a UI prospective
Last Post 23 Jan 2009 06:31 PM by Zhu_Coder. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Zhu_CoderUser is Offline
New Member
New Member
Posts:3
Avatar

--
22 Jan 2009 08:36 PM
    Hi coders!
    I'm new to PS and love it!!!
    Recently, I've created some PSSnapin ( in C#) that use progress bars and even subscribe to the user's ctrl+c event (cancel) and perform some cleanup tasks.

    Now I'd like to build an MMC app on top of these snapins.

    Please give me ideas on how to handle the progress display and CTRL+C in the UI. In other words, how how can I translate what's done by the cmdlets in a console environment, to the UI? any other event to subscribe to in order to make the bridge Console and UI?


    Thanks in advance for your comments/suggestions and happy coding!
    PoshoholicUser is Offline
    PowerShell MVP, Community Director
    Basic Member
    Basic Member
    Posts:110
    Avatar

    --
    23 Jan 2009 07:50 AM
    You might want to take a look at PowerGUI (http://powergui.org)." target="_blank" rel="nofollow">http://powergui.org). It provides an MMC-like administrative console where every node, link and action is powered by a PowerShell script. If you use that tool to create a set of nodes, links and actions, you can then export that collection as a PowerPack and share it with the community.

    Regarding progress, are you using the Write-Progress cmdlet inside your snapin? PowerGUI doesn't support Write-Progress at the moment, but if this is a feature that is important to you and you want to save yourself the effort of having to create your own MMC snapin from scratch, voice your opinion on the PowerGUI Forums. The features in PowerGUI are primarily driven by community feedback, so if something you want isn't there, say so on the forums (also on http://powergui.org)." target="_blank" rel="nofollow">http://powergui.org).

    It sounds like PowerGUI might be what you are looking for (with the addition of Write-Progress support).

    --
    Kirk Munro [MVP]
    Poshoholic
    http://poshoholic.com
    Kirk Munro [MVP]
    Poshoholic

    My blog: http://poshoholic.com
    Follow me on Twitter: http://twitter.com/poshoholic
    Zhu_CoderUser is Offline
    New Member
    New Member
    Posts:3
    Avatar

    --
    23 Jan 2009 06:31 PM
    Thanks for the leads! Pretty cool, I have to admit. Will spend some time with PowerGUI [and the forums] and get back to us pretty soon! Thanks again and may the Force be in your code! :)
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer