Sleep command time out during computer sleep

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
Bridge
Posts: 18
Joined: 09 Apr 2016, 21:00

Sleep command time out during computer sleep

02 May 2017, 10:54

Did you know that the sleep command, in autohotkey, continues timing even when the computer goes to Sleep?

For example:

1. a sleep command, for 10 minutes, activates in your script
eg
"Sleep, 60000 ; ten minutes"
"msgbox, Sleep time now completed"

2. In one minute, The computer itself goes to sleep while there is still 9 minutes remaining in the script sleep command

3. Computer wakes up an hour later.
The sleep command is timed out with no time left in the sleep command.
The 9 minutes timed out while the computer was asleep.
The message in the above example will display immediately after the computer wakes up.

Return to “Other Utilities & Resources”

Who is online

Users browsing this forum: No registered users and 39 guests