; Script can be directly run by or compiled into an .exe by the open-source software AutoHotkey ; https://www.autohotkey.com ; ; Front Matter ; ; Include general library #Include ../lib/General.ahk ; Only do hotkeys if relevant window is active #IfWinActive, Minecraft ; ; Hotkeys ; ; Tab will be the hotkey ~Tab::return ; Hold/Autoclick mouse buttons ; Holds if single click, autoclicks if double click Tab & LButton UP:: KeyWait, LButton, D, T0.2 if (ErrorLevel = 0) { Repeat("LButton",["RButton","MButton"]) } else { Hold("LButton",["RButton","MButton"]) } return Tab & RButton UP:: KeyWait, RButton, D, T0.2 if (ErrorLevel = 0) { Repeat("RButton",["LButton","MButton"]) } else { Hold("RButton",["LButton","MButton"]) } return ; Autorun Tab & w UP::Hold("w",["s"]) Tab & s UP::Hold("s",["w"]) Tab & a UP::Hold("a",["d","w","s"]) Tab & d UP::Hold("d",["a","w","s"]) ; Hold crouch Tab & Shift UP:: if GetKeyState("Alt","P") { Hold("Shift",["Ctrl"]) } else { Hold("Shift",["Ctrl","Space"]) } return ; Autojump/auto-ascend Tab & Space UP::Hold("Space",["Shift"]) ; Mouse button 4: auto-takeoff ; Macro assumes you have your fireworks in the first hotbar slot XButton1:: Loop, 5 { Send {Space down} Sleep 10 } Send {Space up}1 Sleep 225 Loop, 5 { Send {Space down} Sleep 10 } Send {Space up}{RButton} return