Jump to content
Software FX Community

Numbers of processes

Recommended Posts

I have to start using PowerGadgets more.  This is pretty slick.

This is what works for me:

(ps).count | out-gauge -type digital -float -style 10 -refresh 0:0:2 -size 64,64

 There's no reason to use Get-WMIObject for the local system. 

I just wish there was a way to have the gauge float but still be able to add text somewhere so I can remember what the gauge is showing. 

Link to comment
Share on other sites

You can get a title by doing this

(ps).count | out-gauge -type digital -float -style 10 -refresh 0:0:2 -size 64,64 -titles_0_text "#Proc" -titles_0_layout_target AnchorPoint -titles_0_layout_anchorpoint 0.2,0.7

The key here is that by setting the target layout to be AnchorPoint you can control exactly where the title is located (coordinates a from 0 to 1)



Link to comment
Share on other sites

You can also use the Template Creator (out-gauge -config) to decide the best location with the mouse and also avoid some typing [;)]

 You will finally invoke something like this:

(ps).count | out-gauge -template MyTemplate -refresh 0:0:2

You can even make the refresh rate part of the template if you want. 


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...