Last active
April 22, 2026 22:50
-
-
Save selivan/01472ac68bd7f060fc5818db0f6deeaf to your computer and use it in GitHub Desktop.
Auhotkey script to toggle auto moving forward(holding W) in games with CapsLock. Pressing W or S or left mouse stops it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Vibecoded with ChatGPT | |
| ; Licence: WTFPL | |
| #Requires AutoHotkey v2.0 | |
| #Warn All | |
| autoRunActive := false | |
| TraySetIcon("imageres.dll", 112) | |
| StartRunning() | |
| { | |
| global autoRunActive | |
| autoRunActive := true | |
| Send("{w down}") | |
| } | |
| StopRunning() | |
| { | |
| global autoRunActive | |
| Send("{w up}") | |
| autoRunActive := false | |
| } | |
| StopRunning() | |
| CapsLock:: | |
| { | |
| global autoRunActive | |
| if (autoRunActive) | |
| StopRunning() | |
| else | |
| StartRunning() | |
| } | |
| w:: | |
| { | |
| global autoRunActive | |
| if (autoRunActive) | |
| StopRunning() | |
| Send("{w down}") | |
| } | |
| w up:: | |
| { | |
| Send("{w up}") | |
| } | |
| s:: | |
| { | |
| global autoRunActive | |
| if (autoRunActive) | |
| StopRunning() | |
| Send("{s down}") | |
| } | |
| s up:: | |
| { | |
| Send("{s up}") | |
| } | |
| ~LButton:: | |
| { | |
| global autoRunActive | |
| if (autoRunActive) | |
| StopRunning() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment