Created
May 31, 2016 22:07
-
-
Save mshock/52994719e117f763a8068a7b32e6ec33 to your computer and use it in GitHub Desktop.
AutoHotkey script to keep Windows from sleeping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetTimer,KeepAwake,480000 ;run every 8 minutes | |
return | |
KeepAwake: | |
{ | |
MouseMove,0,0,0,R ; mouse pointer stays in place but sends a mouse event | |
} | |
return | |
^0:: | |
Send, Keep-Alive is running | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment