Jump to content

run script when PC changes idle state?


mvidal
 Share

Recommended Posts

Does anyone know of a way to run a script when the PC goes into the "idle" state or transitions out of the idle state? I'm trying to simulate the "auto away" functionality in a program that doesn't have this feature. I'm trying to use AutoIt to do this.

Edited by mvidal
Link to comment
Share on other sites

Does anyone know of a way to run a script when the PC goes into the "idle" state or transitions out of the idle state?  I'm trying to simulate the "auto away" functionality in a program that doesn't have this feature.  I'm trying to use AutoIt to do this.

<{POST_SNAPBACK}>

I am a little confused about what you mean by "idle state." Do you mean when the computer goes on Stand By? When the screen saver comes on? When the monitor shuts off? When the computer hasn't been used for x amount of minutes?
Link to comment
Share on other sites

I am a little confused about what you mean by "idle state." Do you mean when the computer goes on Stand By? When the screen saver comes on? When the monitor shuts off? When the computer hasn't been used for x amount of minutes?

<{POST_SNAPBACK}>

>When the computer hasn't been used for x amount of minutes.

yes.

Link to comment
Share on other sites

Link to comment
Share on other sites

Take a look at this thread (idle_time):

http://www.autoitscript.com/forum/index.ph...408entry27408

Regards

Uten

I also found this dll that I may at some point try to use.

http://www.mvps.org/scripting/com/comwsh.htm

IdleTime - http://www.mvps.org/scripting/files/idletime.zip

COM wrapper around the GetLastInputInfo API; returns current system idle time in milliseconds. Includes the DLL and a demo script

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...