Detecting Locked vs. Unlocked

Recommended Posts

beb7089 0

beb7089 0

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.