Last active
August 29, 2015 13:56
-
-
Save Mumberthrax/8798865 to your computer and use it in GitHub Desktop.
Toggle Sneak for minecraft
This file contains 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
/* | |
Togglesneak v.1.1 | |
By Mumberthrax | |
License: cc-by-sa | |
changelog: | |
1.0 - herpaderp | |
1.1 - use left shift key to toggle sneak. Included commented-out option for using left control instead | |
Known bugs: | |
- cannot chat while sneaking is toggled | |
*/ | |
/* | |
; Uncomment for people who use the left control key | |
LControl:: | |
if GetKeyState("LControl") ; LControl is logically down. Release it. | |
Send {Blind}{LControl Up} | |
else ; LControl is logically up. Press it. | |
Send {Blind}{LControl Down} | |
return | |
*/ | |
LShift:: | |
if GetKeyState("LShift") ; LShift is logically down. Release it. | |
Send {Blind}{LShift Up} | |
else ; LShift is logically up. Press it. | |
Send {Blind}{LShift Down} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment