Advertisement
Guest User

Untitled

a guest
Aug 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #MaxThreadsPerHotkey 3 ;Needed for multiple threads, 2 should work, too
  2. ; Buy 15 tons of powerplay-stuff from 2nd row once in the window of the contact, do 10 cycles, so 150t in one go.
  3. f9::
  4. #MaxThreadsPerHotkey 1
  5. if keepbuying ; underlying thread is already running the actions below?
  6. {
  7. keepbuying := false ; Signal to Stop
  8. return
  9. }
  10. ; Otherwise
  11. keepbuying := true
  12. Loop, 50 ; run the loop 50 times. remove number to start-stop loop with hotkey
  13. {
  14. send, d
  15. send, {s 2}
  16. send, {Space}
  17. sleep, 750
  18. send, {d 20}
  19. sleep, 200
  20. send, {Space}
  21. sleep, 500
  22. send, {Space}
  23. sleep, 500
  24. if not keepbuying ; signal to stop with 2nd press
  25. break ; escape this loop
  26. }
  27. keepbuying := false ; Reset for next keypress
  28. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement