scripts-win/NoSleep/nosleep.ahk

16 lines
299 B
AutoHotkey
Raw Normal View History

2021-11-26 21:01:09 +00:00
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
}
}