Sign in to follow this  
Followers 0
Gigli

When a process is > than 50 % CPU (for example) do something...

3 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites
Here is another example.

When the words fail... music speaks

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0