Skip to content

Instantly share code, notes, and snippets.

@mo9a7i
Created June 5, 2024 16:30
Show Gist options
  • Save mo9a7i/3c12f9c5c07589ca8afbc95c2153abbb to your computer and use it in GitHub Desktop.
Save mo9a7i/3c12f9c5c07589ca8afbc95c2153abbb to your computer and use it in GitHub Desktop.
Move with WSAD in game automatically (F5 Activation)
toggle := false
F5::
toggle := !toggle
if (toggle)
SetTimer, PressW, 50 ; Start pressing 'W' every 50 ms
else
SetTimer, PressW, Off ; Stop pressing 'W'
return
PressW:
Send, {w down}
Sleep, 200 ; Duration 'W' is held down
Send, {w up}
Send, {s down}
Sleep, 200 ; Duration 'W' is held down
Send, {s up}
Send, {d down}
Sleep, 200 ; Duration 'W' is held down
Send, {d up}
Send, {w down}
Sleep, 200 ; Duration 'W' is held down
Send, {w up}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment