Skip to content

Instantly share code, notes, and snippets.

@amaurycatelan
Forked from user65898588/NoCancelWASD.ahk
Created March 24, 2020 21:03
Show Gist options
  • Save amaurycatelan/f611c08c53c62900f070233c112b8e62 to your computer and use it in GitHub Desktop.
Save amaurycatelan/f611c08c53c62900f070233c112b8e62 to your computer and use it in GitHub Desktop.
#InstallKeybdhook
#usehook
F1::Suspend
F5::Reload
$a::
Send {a down}
Return
$a up::
Send {a up}
Return
~a & d::
Send {a up}{d down}
Return
~a & d up::
Send {d up}
if (GetKeyState("a", "P"))
Send {a down}
Return
$d::
Send {d down}
Return
$d up::
Send {d up}
Return
~d & a::
Send {d up}{a down}
Return
~d & a up::
Send {a up}
if (GetKeyState("d", "P"))
Send {d down}
Return
$w::
Send {w down}
Return
$w up::
Send {w up}
Return
~w & s::
Send {w up}{s down}
Return
~w & s up::
Send {s up}
if (GetKeyState("w", "P"))
Send {w down}
Return
$s::
Send {s down}
Return
$s up::
Send {s up}
Return
~s & w::
Send {s up}{w down}
Return
~s & w up::
Send {w up}
if (GetKeyState("s", "P"))
Send {s down}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment