Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HotKeySet("y", "start")
- HotKeySet("x", "pause")
- HotKeySet("c", "end")
- While 1
- Sleep(100)
- ConsoleWrite("press [Y] to start the bot / press [X] to pause the bot / press [C] to end the bot" & @CRLF)
- ToolTip("[Y] to start / [X] to pause / [C] to end")
- WEnd
- func start()
- While 1
- $array_pos = PixelSearch(500, 370, 1570, 800, 0x645A20, 20)
- if @error = 0 Then
- MouseClick("left", $array_pos[0], $array_pos[1], 10, 0)
- ToolTip("Pew Pew")
- EndIf
- Sleep(70)
- WEnd
- EndFunc
- func pause()
- While 1
- ToolTip("Press [Y] to unpause / [C] to end the Script")
- sleep(10)
- WEnd
- EndFunc
- func end()
- Exit
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement