mvidal Posted September 15, 2005 Share Posted September 15, 2005 (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 September 15, 2005 by mvidal Link to comment Share on other sites More sharing options...
AutoChris Posted September 16, 2005 Share Posted September 16, 2005 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 More sharing options...
mvidal Posted September 16, 2005 Author Share Posted September 16, 2005 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 More sharing options...
Uten Posted September 16, 2005 Share Posted September 16, 2005 Take a look at this thread (idle_time):http://www.autoitscript.com/forum/index.ph...408entry27408RegardsUten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
mvidal Posted September 16, 2005 Author Share Posted September 16, 2005 Take a look at this thread (idle_time):http://www.autoitscript.com/forum/index.ph...408entry27408RegardsUtenI also found this dll that I may at some point try to use.http://www.mvps.org/scripting/com/comwsh.htmIdleTime - http://www.mvps.org/scripting/files/idletime.zipCOM 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now