#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #MaxThreadsPerHotkey 2 SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. 1:: toggle :=! toggle Sleep 1000 While, (toggle) { SendInput, {Down down} Sleep 1000 SendInput, {Down Up} Sleep 1000 } return