Guest User

WallHack_Inc AHK Autoclicker

a guest
Aug 25th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #CommentFlag //
  2. // INSTRUCTIONS
  3. // WinKey + left click: Start clicking
  4. // WinKey + right click: Stop clicking
  5. // WinKey + Up/Down: Increase/decrease clicks per unit of time
  6. // WinKey + Scroll Up/Down: Increase/decrease clicks per unit of time
  7.  
  8. Hotkey, #Up,        Off
  9. Hotkey, #Down,      Off
  10. Hotkey, #WheelUp,   Off
  11. Hotkey, #WheelDown, Off
  12. Hotkey, #$RButton,  Off
  13.  
  14. DELAY_MIN := 50
  15. DELAY_MAX := 10000
  16. STEP_MULTIPLIER := 50
  17. stepDelay := 1
  18. mouseDelay := 100
  19.  
  20. #$LButton::
  21.     Hotkey, #Up,        On
  22.     Hotkey, #Down,      On
  23.     Hotkey, #WheelUp,   On
  24.     Hotkey, #WheelDown, On
  25.     Hotkey, #$RButton,  On
  26.  
  27.     stepDelay := 1
  28.     mouseDelay := 100
  29.  
  30.     CPS := Format("{:0.2f} CPS", 1000/mouseDelay)
  31.     SplashImage,, b fs18, %CPS%
  32.     Sleep, 500
  33.     SplashImage, Off
  34.  
  35.     SetTimer, delayedClick, %mouseDelay%
  36. return
  37.  
  38. #$RButton::
  39.     Hotkey, #Up,            Off
  40.     Hotkey, #Down,          Off
  41.     Hotkey, #WheelUp,       Off
  42.     Hotkey, #WheelDown,     Off
  43.     Hotkey, #$RButton,      Off
  44.     SetTimer, delayedClick, Off
  45. return
  46.  
  47. #Up::
  48.     if (stepDelay > 0) {
  49.         stepDelay--
  50.         mouseDelay := STEP_MULTIPLIER * stepDelay + DELAY_MIN
  51.     }
  52.     CPS := Format("{:0.2f} CPS", 1000/mouseDelay)
  53.     SplashImage, , b fs18, %CPS%
  54.     Sleep, 200
  55.     SplashImage, Off
  56.  
  57.     SetTimer, delayedClick, Off
  58.     SetTimer, delayedClick, %mouseDelay%
  59. return
  60.  
  61. #Down::
  62.     if ((STEP_MULTIPLIER * (stepDelay + 1)) + DELAY_MIN <= DELAY_MAX) {
  63.         stepDelay++
  64.         mouseDelay := STEP_MULTIPLIER * stepDelay + DELAY_MIN
  65.     }
  66.     CPS := Format("{:0.2f} CPS", 1000/mouseDelay)
  67.     SplashImage, , b fs18, %CPS%
  68.     Sleep, 200
  69.     SplashImage, Off
  70.    
  71.     SetTimer, delayedClick, Off
  72.     SetTimer, delayedClick, %mouseDelay%
  73. return
  74.  
  75. #WheelUp::
  76.     if (stepDelay > 0) {
  77.         stepDelay--
  78.         mouseDelay := STEP_MULTIPLIER * stepDelay + DELAY_MIN
  79.     }
  80.     CPS := Format("{:0.2f} CPS", 1000/mouseDelay)
  81.     SplashImage, , b fs18, %CPS%
  82.     Sleep, 200
  83.     SplashImage, Off
  84.  
  85.     SetTimer, delayedClick, Off
  86.     SetTimer, delayedClick, %mouseDelay%
  87. return
  88.  
  89. #WheelDown::
  90.     if ((STEP_MULTIPLIER * (stepDelay + 1)) + DELAY_MIN <= DELAY_MAX) {
  91.         stepDelay++
  92.         mouseDelay := STEP_MULTIPLIER * stepDelay + DELAY_MIN
  93.     }
  94.     CPS := Format("{:0.2f} CPS", 1000/mouseDelay)
  95.     SplashImage, , b fs18, %CPS%
  96.     Sleep, 200
  97.     SplashImage, Off
  98.    
  99.     SetTimer, delayedClick, Off
  100.     SetTimer, delayedClick, %mouseDelay%
  101. return
  102.  
  103. delayedClick:
  104.     SetControlDelay -1
  105.     ControlClick, x130 y530, WallHack_Inc,,,,Pos
  106. return
Add Comment
Please, Sign In to add comment