Jump to content

Recommended Posts

Posted

Hello

Is it possible to launch something (a msgbox for example) when a process occuped for example more than 50 % of the CPU ?

How ?

Thanks you :)

Posted

You could us the ProcessListProperties function like this:

While 1
$array = _ProcessListProperties()
For $X = 1 to $array[0][0]
If $array[$X][6] > 50 Then
;Do stuff
EndIf
Next

Sleep(2000);Poll every 2 seconds
WEnd

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...