Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
2,454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. HotKeySet("y", "start")
  2. HotKeySet("x", "pause")
  3. HotKeySet("c", "end")
  4.  
  5.  
  6. While 1
  7. Sleep(100)
  8. ConsoleWrite("press [Y] to start the bot / press [X] to pause the bot / press [C] to end the bot" & @CRLF)
  9. ToolTip("[Y] to start / [X] to pause / [C] to end")
  10. WEnd
  11.  
  12. func start()
  13. While 1
  14. $array_pos = PixelSearch(500, 370, 1570, 800, 0x645A20, 20)
  15. if @error = 0 Then
  16. MouseClick("left", $array_pos[0], $array_pos[1], 10, 0)
  17. ToolTip("Pew Pew")
  18. EndIf
  19. Sleep(70)
  20. WEnd
  21.  
  22. EndFunc
  23.  
  24.  
  25. func pause()
  26. While 1
  27. ToolTip("Press [Y] to unpause / [C] to end the Script")
  28. sleep(10)
  29. WEnd
  30. EndFunc
  31.  
  32. func end()
  33.  
  34. Exit
  35. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement