[text] x

Viewer

  1. ReadyKey="capslock" -- readies the left click for mining; also turns off mining any time you want
  2. ScriptToggle="scrolllock" -- turns whole script on/off
  3. -- Other Options include numlock
  4. function AutoMine()
  5.     repeat
  6.         PressMouseButton(1)
  7.         Sleep(19)
  8.         ReleaseMouseButton(1)
  9.         Sleep(2500)
  10.         PressKey("w")
  11.         Sleep(200)
  12.         ReleaseKey("w")
  13. until not IsKeyLockOn(ReadyKey)
  14. end
  15.  
  16. function OnEvent(event,arg)
  17.     if IsKeyLockOn(ScriptToggle)then
  18.         if IsKeyLockOn(ReadyKey)then
  19.         if IsMouseButtonPressed(1) then
  20.             AutoMine()
  21.         end
  22.     end
  23.     end 
  24. end

Editor

You can edit this paste and save as new: