Jump to content

Windows Idle Detection


laurin1
 Share

Recommended Posts

The screensaver is always a process name <somthing>.scr

--> So if you know which screesaver is enabled you just have to look for this process

The current enabled screensaver can be looked up under

HKCU\Control Panel\Desktop\SCRNSAVE.EXE in the registry

ProcessWait("logon.scr") ;Pauses script execution until a given process exists.
Link to comment
Share on other sites

Just check the cpu usage of System Idle Process, If it is above 90% the system is probably idle.

I use Psalty's ProcessListProperties UDF to do this:

http://www.autoitscript.com/forum/index.ph...mp;#entry409276

Ok, but that won't work for this purpose, because I have processes running at times that will push the idle below 90%. How does MS do it?

Keith Davis

MCSA, ZCE, A+, N+

http://www.laurinkeithdavis.com

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...