beb7089 Posted November 30, 2005 Posted November 30, 2005 Is there any method to detect whether a machine is locked vs. unlocked? As most everyone knows, if a script executes and that script requires window manipulations the script will fail to run correctly. I would like to place something at the begining of a script to detect the current state (locked vs. unlocked) and if the machine is locked the script would simply wait until the machine is unlocked and then continue processing the script. Thanks.
herewasplato Posted December 2, 2005 Posted December 2, 2005 Perhaps this will work for you:Do WinActivate("Program Manager","") Until WinWaitActive("Program Manager","",1)It will not max out the CPU while waiting... [size="1"][font="Arial"].[u].[/u][/font][/size]
CyberSlug Posted December 2, 2005 Posted December 2, 2005 http://www.autoitscript.com/forum/index.ph...ed++workstation Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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