Sign in to follow this  
Followers 0
mvidal

run script when PC changes idle state?

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Share this post


Link to post
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

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