Last active
August 29, 2021 05:04
-
-
Save DavidMetcalfe/a6f1fc68e71bc4045a13 to your computer and use it in GitHub Desktop.
Minecraft Right and Mouse button (held down) loops
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
/* 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