Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- leftMouse = false
- #IfWinActive, Minecraft
- {
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Hold left mouse button
- ;; Toggle with Ctrl+Left mouse
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ^LButton::
- if (leftMouse)
- {
- Send {Lbutton up}
- leftMouse := false
- }
- else
- {
- Send {Lbutton down}
- leftMouse := true
- }
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Slow Excavation Mode
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- XButton2::
- GetKeyState, state, Lbutton
- if state = D
- {
- Send {Lbutton Up}
- Send {LShift Up}
- Send {w Up}
- }
- else
- {
- Send {Lbutton Down}
- Send {LShift Down}
- Send {w Down}
- }
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Fast Excavation Mode
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- XButton1::
- GetKeyState, state, Lbutton
- if state = D
- {
- Send {Lbutton Up}
- Send {w Up}
- }
- else
- {
- Send {Lbutton Down}
- Send {w Down}
- }
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Run Mode
- ;; Toggle with Ctrl-W
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ^w::
- if GetKeyState("w")
- {
- Send {w Up}
- }
- else
- {
- Send {w Down}
- }
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Toggle crouch
- ;; Toggled with tilde
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- `::
- GetKeyState, state, Shift
- if state = D
- Send {LShift Up}
- else
- Send {LShift Down}
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Toggle jump
- ;; Toggled with ctrl + space
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ^Space::
- GetKeyState, state, Space
- if state = D
- Send {Space Up}
- else
- Send {Space Down}
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Teleport /home
- ;; Use Ctrl-H
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ^h::
- GetKeyState, state, Shift
- if state = D
- {
- Send {LShift Up}
- }
- Send t/home {enter}
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Skyway Mode (Under construction)
- ;; Toggled with Ctrl-R
- ;;
- ;; Usage is a bit tricky.
- ;; - Start the skyway/bridge (one block wide)
- ;;
- ;; - Toggle crouch with capslock
- ;;
- ;; - Position yourself so that your crosshair is aiming at the end of the
- ;; block that is currently at the end of your skyway (with the current
- ;; skyway blocks extending to your left (i.e. the skyway will be
- ;; extending to your right)).
- ;;
- ;; - Press Control-R and enjoy the show.
- ;;
- ;; - You will need to periodically feed it stacks of new blocks.
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ^r::
- If GetKeyState("d")
- {
- Send {d Up}
- Send {s Up}
- ;Send {Rbutton Up}
- SetTimer, SkywayTimer, off
- }
- else
- {
- Click right
- SetTimer, SkywayTimer, 650
- Send {d Down}
- Send {s Down}
- ;Send {Rbutton Down}
- }
- return
- SkywayTimer:
- Click right
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- ;; Tower Mode
- ;; Toggled with Ctrl-T
- ;;
- ;; Usage for this one is simple.
- ;; Select an appropriate stack of blocks (like dirt or sand)
- ;; then look straight down and activate
- ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ^t::
- GetKeyState, state, Space
- if state = D
- {
- Send {Space Up}
- Send {Rbutton Up}
- }
- else
- {
- Send {Space Down}
- Send {Rbutton Down}
- }
- return
- ;;;;;;; Block backslash (so you don't get kicked out of SMP)
- \::
- return
- } ;;End of Minecraft section
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement