Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  3. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  4.  
  5. leftMouse = false
  6.  
  7. #IfWinActive, Minecraft
  8. {
  9.  
  10.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  11.  ;;
  12.  ;; Hold left mouse button
  13.  ;; Toggle with Ctrl+Left mouse
  14.  ;;
  15.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  16.  
  17. ^LButton::
  18.  if (leftMouse)
  19.  {
  20.    Send {Lbutton up}
  21.    leftMouse := false
  22.  }
  23.  else
  24.  {
  25.    Send {Lbutton down}
  26.    leftMouse := true
  27.  }
  28. return
  29.  
  30.  
  31.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  32.  ;;
  33.  ;; Slow Excavation Mode
  34.  ;;
  35.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  36.  XButton2::
  37.  GetKeyState, state, Lbutton
  38.  if state = D
  39.  {
  40.     Send {Lbutton Up}
  41.     Send {LShift Up}
  42.     Send {w Up}
  43.  }
  44.  else
  45.  {
  46.     Send {Lbutton Down}
  47.     Send {LShift Down}
  48.     Send {w Down}
  49.  }
  50.  return
  51.  
  52.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  53.  ;;
  54.  ;; Fast Excavation Mode
  55.  ;;
  56.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  57.  
  58.  XButton1::
  59.  GetKeyState, state, Lbutton
  60.  if state = D
  61.  {
  62.     Send {Lbutton Up}
  63.     Send {w Up}
  64.  }
  65.  else
  66.  {
  67.     Send {Lbutton Down}
  68.     Send {w Down}
  69.  }
  70.  return
  71.  
  72.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  73.  ;;
  74.  ;; Run Mode
  75.  ;; Toggle with Ctrl-W
  76.  ;;
  77.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  78.  ^w::
  79.  if GetKeyState("w")
  80.  {
  81.      Send {w Up}
  82.  }
  83.  else
  84.  {
  85.      Send {w Down}
  86.  }
  87.  return
  88.  
  89.  
  90.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  91.  ;;
  92.  ;; Toggle crouch
  93.  ;; Toggled with tilde
  94.  ;;
  95.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  96.  
  97.  `::
  98.  GetKeyState, state, Shift
  99.  if state = D
  100.     Send {LShift Up}
  101.  else
  102.     Send {LShift Down}
  103.  return
  104.  
  105.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  106.  ;;
  107.  ;; Toggle jump
  108.  ;; Toggled with ctrl + space
  109.  ;;
  110.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  111.  
  112.  ^Space::
  113.  GetKeyState, state, Space
  114.  if state = D
  115.     Send {Space Up}
  116.  else
  117.     Send {Space Down}
  118.  return
  119.  
  120.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  121.  ;;
  122.  ;; Teleport /home
  123.  ;; Use Ctrl-H
  124.  ;;
  125.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  126.  
  127.  ^h::
  128.  GetKeyState, state, Shift
  129.  if state = D
  130.  {
  131.     Send {LShift Up}
  132.  }
  133.  Send t/home {enter}
  134.  return
  135.  
  136.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  137.  ;;
  138.  ;; Skyway Mode (Under construction)
  139.  ;; Toggled with Ctrl-R
  140.  ;;
  141.  ;; Usage is a bit tricky.
  142.  ;; - Start the skyway/bridge (one block wide)
  143.  ;;
  144.  ;; - Toggle crouch with capslock
  145.  ;;
  146.  ;; - Position yourself so that your crosshair is aiming at the end of the
  147.  ;;   block that is currently at the end of your skyway (with the current
  148.  ;;   skyway blocks extending to your left (i.e. the skyway will be
  149.  ;;   extending to your right)).
  150.  ;;
  151.  ;; - Press Control-R and enjoy the show.
  152.  ;;
  153.  ;; - You will need to periodically feed it stacks of new blocks.
  154.  ;;
  155.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  156.  
  157.  ^r::
  158.  If GetKeyState("d")
  159.  {
  160.     Send {d Up}
  161.     Send {s Up}
  162.     ;Send {Rbutton Up}
  163.     SetTimer, SkywayTimer, off
  164.  }
  165.  else
  166.  {
  167.     Click right
  168.     SetTimer, SkywayTimer, 650
  169.     Send {d Down}
  170.     Send {s Down}
  171.     ;Send {Rbutton Down}    
  172.  }
  173.  return
  174.  
  175.  SkywayTimer:
  176.    Click right
  177.  return
  178.  
  179.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  180.  ;;
  181.  ;; Tower Mode
  182.  ;; Toggled with Ctrl-T
  183.  ;;
  184.  ;; Usage for this one is simple.
  185.  ;; Select an appropriate stack of blocks (like dirt or sand)
  186.  ;; then look straight down and activate
  187.  ;;
  188.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  189.  
  190.  ^t::
  191.  GetKeyState, state, Space
  192.  if state = D
  193.  {
  194.     Send {Space Up}
  195.     Send {Rbutton Up}
  196.  }
  197.  else
  198.  {
  199.     Send {Space Down}
  200.     Send {Rbutton Down}
  201.  }
  202.  return
  203.  
  204.  ;;;;;;; Block backslash (so you don't get kicked out of SMP)
  205.  \::
  206.  return
  207.  
  208. } ;;End of Minecraft section
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement