Skip to content

Instantly share code, notes, and snippets.

@dmarov
Last active June 25, 2020 19:39
Show Gist options
  • Save dmarov/7a0259777909beeef49ce8585bb223b6 to your computer and use it in GitHub Desktop.
Save dmarov/7a0259777909beeef49ce8585bb223b6 to your computer and use it in GitHub Desktop.
F9::Suspend
f::
Loop
{
GetKeyState, var, f, P ;
If var = U
Break
Send, {a down}
Sleep, 10
Send, {a up}
Sleep, 10
Send, {d down}
Sleep, 10
Send, {d up}
Sleep, 10
}
return
q::
Loop
{
GetKeyState, var, q, P ;
If var = U
Break
Send, {Space down}
Sleep, 10
Send, {Space up}
Sleep, 10
}
return
c::
Loop
{
GetKeyState, var, c, P ;
If var = U
Break
Send, {Control down}
Sleep, 40
Send, {Control up}
Sleep, 40
}
return
z::
Loop
{
GetKeyState, var, z, P ;
If var = U
Break
Send, {Control down}
Sleep, 10
Send, {Control up}
Sleep, 10
}
return
XButton2::
{
Run %ComSpec% /c "node C:\Users\{{YourUsernameHere}}\bin\lagswitch.js", "C:\Users\{{YourUsernameHere}}\bin", Hide
}
e::Process,Close,node.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment