Skip to content

Instantly share code, notes, and snippets.

@ethack
Created March 2, 2017 11:54
Show Gist options
  • Select an option

  • Save ethack/286abb736f41decf99a59273b98195c1 to your computer and use it in GitHub Desktop.

Select an option

Save ethack/286abb736f41decf99a59273b98195c1 to your computer and use it in GitHub Desktop.
NoSleep
CoordMode, Mouse, Screen
MouseGetPos, CurrentX, CurrentY
Loop {
Sleep, 60000
LastX := CurrentX
LastY := CurrentY
MouseGetPos, CurrentX, CurrentY
If (CurrentX = LastX and CurrentY = LastY) {
MouseMove, 1, 1, , R
Sleep, 100
MouseMove, -1, -1, , R
}
}
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment