Jump to content
Software FX Community

Numbers of processes


Recommended Posts

Posted

Hi there. How do i get a gauge that shows me how many processes that are running i have tried this

 

$temp = {

  $ps = ps

  $ps.count

}

&$temp | out-gauge -type digital -refresh 0:0:1

It almost work but it won't refresh 

Posted

I figured ut out. The command line loks like this:

get-wmiobject Win32_Process | group-object -property group | out-gauge -value count -type digital -refresh 0:0:1 -float

Posted

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. 

Posted

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)

JuanC

 

Posted

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. 

IvanGPowerGadgets

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...