Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. #UseHook On
  2. ; Split meat by holding down alt and click + hold on the stack of meat
  3. Alt & LButton::
  4. Send {lctrl Down}
  5. Loop {
  6. Sleep 5 ; This is the delay between clicks, in milliseconds.
  7. GetKeyState, LButtonState, LButton, P
  8. if LButtonState = U ; User has physically released the button, so end the loop.
  9. break
  10. MouseClickDrag, left, 0, 0, 50, 50, 4, R
  11. MouseMove, -50, -50, 0, R
  12. }
  13. Send {lctrl Up}
  14. return
  15.  
  16.  
  17. ; Applies shift key a couple times a second, for flying with better stamina. Toggleable.
  18. shiftMoveToggle := 0
  19. ` & w::
  20. shiftMoveToggle := !shiftMoveToggle
  21. if (shiftMoveToggle) {
  22. SetTimer, ShiftMove, 300 ; This is the delay between keypresses, in milliseconds.
  23. } else {
  24. SetTimer, ShiftMove, Off
  25. }
  26. return
  27.  
  28. ShiftMove:
  29. Send {LShift Down}
  30. Sleep 50 ; This is the time shift is pressed down, in milliseconds.
  31. Send {LShift Up}
  32. return
  33.  
  34.  
  35.  
  36.  
  37. ; Places and destroys a boxes automatically! Put box on 9 slot in hotbar. Toggleable.
  38. placeBoxToggle := 0
  39. Alt & b::
  40. Sleep 500 ; Get around command executing a crouch for some reason
  41. placeBoxToggle := !placeBoxToggle
  42. if (placeBoxToggle) {
  43. SetTimer, PlaceAndDestroyBox, 0
  44. } else {
  45. SetTimer, PlaceAndDestroyBox, Off
  46. }
  47. return
  48.  
  49. PlaceAndDestroyBox:
  50. ; PlaceBox
  51. Send {9}
  52. Click
  53. Sleep 10
  54. Click
  55. Sleep 150
  56.  
  57. ; DestroyBox
  58. Send {E Down}
  59. Sleep 300 ; The time delay for the command wheel to show up
  60. MouseMove, -300, -100, 10, R
  61. Sleep 1000 ; The time delay for the destroy command
  62. Send {E Up}
  63.  
  64. Sleep 100 ; The time delay between PlaceAndDestroy method
  65. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement