- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- ; Author Brent Plays [checkout my Fb page httpwww.facebook.combrentplays]
- g::
- KeyDown := !KeyDown
- If KeyDown
- Send {Shift down}{w down}
- Else
- Send {Shift up}{w up}
- Return
- ReadyKey="capslock" -- readies the left click for mining; also turns off mining any time you want
- ScriptToggle="scrolllock" -- turns whole script on/off
- -- Other Options include numlock
- function AutoMine()
- repeat
- PressMouseButton(1)
- Sleep(19)
- ReleaseMouseButton(1)
- Sleep(2500)
- PressKey("w")
- Sleep(200)
- ReleaseKey("w")
- until not IsKeyLockOn(ReadyKey)
- end
- function OnEvent(event,arg)
- if IsKeyLockOn(ScriptToggle)then
- if IsKeyLockOn(ReadyKey)then
- if IsMouseButtonPressed(1) then
- AutoMine()
- end
- end
- end
- end
[text] x
Viewer
Editor
You can edit this paste and save as new:
File Description
- x
- Paste Code
- 16 Oct-2021
- 1018 Bytes
You can Share it:
Latest Code Pastes