Advertisement
SmashLies

H1Z1 Auto Clicker

Jan 24th, 2017
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. ; Download or copy/paste this script to scraper.ahk
  2. ; Run it (just double klick scraper.ahk)
  3.  
  4. ; F3 - Bottle Filling. Place mouse pointer over bottles you want to fill and press F3 to start (Esc or F8 to stop)
  5. ; F4 - Ammo Dismanteling. Place mouse pointer over ammo you want to dismantle and press F4 to start (Esc or F8 to stop)
  6. ; F5 - Auto scraping if you have crowbars in all 3 slots
  7. ; F6 - Auto scraping if you have weapon in slot 1 (crowbar in slot 2 and 3)
  8. ; F7 - Auto scraping if you have only one crowbar no matter in which slot, just regular autoclicking
  9.  
  10. ; F8 or Esc - stops all above
  11.  
  12. #SingleInstance
  13. #IfWinActive H1Z1
  14. #MaxThreadsPerHotkey 2
  15.  
  16. sleepDelayScraping := 150
  17. crowbarSwitchingFactor := 5
  18. sleepDelayFill := 5500
  19. sleepDelayDismanteling := 2000
  20.  
  21. toggle := 0
  22.  
  23. ~F3::
  24. toggle := 1
  25. While toggle{
  26. SetMouseDelay 30
  27. Click right
  28. MouseMove, 10, 10, 3, R
  29. Click
  30. MouseMove, -10, -10, 3, R
  31. Sleep sleepDelayFill
  32. }
  33. Return
  34.  
  35. ~F4::
  36. toggle := 1
  37. While toggle{
  38. SetMouseDelay 30
  39. Click right
  40. MouseMove, 10, 10, 3, R
  41. Click
  42. MouseMove, -10, -10, 3, R
  43. Sleep sleepDelayDismanteling
  44. }
  45. Return
  46.  
  47. ~F5::
  48. toggle := 1
  49. While toggle{
  50. Random, rand, 1, crowbarSwitchingFactor
  51. if (rand = 1) {
  52. Send 2
  53. Sleep 50
  54. }
  55. SetMouseDelay 30
  56. Click
  57. Sleep sleepDelayScraping
  58. }
  59. Return
  60.  
  61. ~F6::
  62. toggle := 1
  63. While toggle{
  64. Random, rand, 1, crowbarSwitchingFactor
  65. if (rand = 1) {
  66. Send 3
  67. Sleep 50
  68. }
  69. SetMouseDelay 30
  70. Click
  71. Sleep sleepDelayScraping
  72. }
  73. Return
  74.  
  75. ~F7::
  76. toggle := 1
  77. While toggle{
  78. SetMouseDelay 30
  79. Click
  80. Sleep sleepDelayScraping
  81. }
  82. Return
  83.  
  84. ~F8::
  85. toggle := 0
  86. Return
  87.  
  88. ~*Esc::
  89. toggle := 0
  90. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement