diff --git a/README.md b/README.md new file mode 100644 index 0000000..94f1c6c --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# move-mouse + +## Installation +Copy exe to `$APPDATA/Microsoft/Windows/Start Menu/Programs/Startup/` and run it. + +## Compilation +- Install [AutoHotkey](https://www.autohotkey.com/download) with compiler +- Build exe with `\Compiler\Ahk2Exe.exe /in move-mouse.ahk /out move-mouse.exe` diff --git a/move-mouse.ahk b/move-mouse.ahk new file mode 100755 index 0000000..1c35b1c --- /dev/null +++ b/move-mouse.ahk @@ -0,0 +1,14 @@ +Menu, Tray, Icon, C:\Windows\Cursors\aero_link_l.cur + +Loop +{ + ; Move mouse + MouseMove, 1, 0, 0, R + + ; Move back + MouseMove, -1, 0, 0, R + + ; Wait 5 minutes before moving the mouse again + Sleep, 300000 +} +return