Skip to content

Instantly share code, notes, and snippets.

@peterthehan
Created September 22, 2020 23:57
Show Gist options
  • Save peterthehan/9f3f829dea8e2e60152729dfff1c5476 to your computer and use it in GitHub Desktop.
Save peterthehan/9f3f829dea8e2e60152729dfff1c5476 to your computer and use it in GitHub Desktop.
Prevent idling by displacing the mouse cursor.
#NoEnv
#Persistent
#SingleInstance, Force
SetTimer, MoveMouse, 10000
Return
MoveMouse:
If (A_TimeIdle > 60000) {
MouseMove, 1, 1,, R
MouseMove, -1, -1,, R
}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment