Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AutoHotkey script to keep Windows from sleeping
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
You can’t perform that action at this time.