[text] x

Viewer

  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. ; Author Brent Plays [checkout my Fb page httpwww.facebook.combrentplays]
  4. g::
  5.         KeyDown := !KeyDown
  6.         If KeyDown
  7.                 Send {Shift down}{w down}
  8.         Else
  9.                 Send  {Shift up}{w up}
  10. Return
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. ReadyKey="capslock" -- readies the left click for mining; also turns off mining any time you want
  21. ScriptToggle="scrolllock" -- turns whole script on/off
  22. -- Other Options include numlock
  23. function AutoMine()
  24.     repeat
  25.         PressMouseButton(1)
  26.         Sleep(19)
  27.         ReleaseMouseButton(1)
  28.         Sleep(2500)
  29.         PressKey("w")
  30.         Sleep(200)
  31.         ReleaseKey("w")
  32. until not IsKeyLockOn(ReadyKey)
  33. end
  34.  
  35. function OnEvent(event,arg)
  36.     if IsKeyLockOn(ScriptToggle)then
  37.         if IsKeyLockOn(ReadyKey)then
  38.         if IsMouseButtonPressed(1) then
  39.             AutoMine()
  40.         end
  41.     end
  42.     end 
  43. end

Editor

You can edit this paste and save as new:


File Description
  • x
  • Paste Code
  • 16 Oct-2021
  • 1018 Bytes
You can Share it: