Skip to content

Instantly share code, notes, and snippets.

@DavidMetcalfe
Last active August 29, 2021 05:04
Show Gist options
  • Save DavidMetcalfe/a6f1fc68e71bc4045a13 to your computer and use it in GitHub Desktop.
Save DavidMetcalfe/a6f1fc68e71bc4045a13 to your computer and use it in GitHub Desktop.
Minecraft Right and Mouse button (held down) loops
/* Ctrl+Right Mouse button loops holding down Right Mouse button until either W or S are pressed.
Useful with certain boring Minecraft activities that have a person standing still and holding Right Mouse
for extended periods. Moving forward or backwards (W or S respectively) will stop the loop.
Replacing "RButton" with "LButton" will change Right Mouse held down with Left Mouse.
*/
^RButton::
send {RButton down}
loop
{
if getkeystate("w", "p") or getkeystate("s", "p")
{
break
}
sleep, 50
}
send {RButton up}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment