Guest User

AHK script for AFK horse betting (COMMENTED)

a guest
Aug 1st, 2019
10,098
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Process,Priority,,High
  2. ^+p::reload ; Ctrl + Shift + p pauses the script (it'll start from the top if you nex time you press Ctrl + Shift + x)
  3. ^+x:: ; Ctrl + Shift + x starts the script
  4. ; PLEASE NOTE THAT THE SCRIPT ONLY WORKS IF YOU SET THE GAME TO WINDOWED MODE AND THE RESOLUTION TO 800X600, ALSO,
  5. ; IT MAY NOT WORK IF YOU HAVE THE SCALING ON WINDOWS SET HIGHER THAN 100%!
  6. Loop ; Makes the script run indefinitely until the "reload" hotkey is pressed.
  7. {
  8. WinActivate, ahk_exe GTA5.exe
  9. Sleep 200
  10. MouseClick, left, 300, 200,,8,D ; Clicks down on the first horse
  11. Sleep 20 ; Waits 20ms before running the next line (ALL THESE 20MS DELAYS BETWEEN CLICK DOWN AND CLICK UP ARE NECESSARY, OTHERWISE THE
  12. ; GAME WON'T DETECT THE CLICKS, DON'T LOWER THEM).
  13. MouseClick, left,,,,8,U ; Releases Left button (LMB) off the first horse
  14. Sleep 200 ; Waits 200ms before running the next line
  15. MouseClick, left, 513, 463,,8,D ; Clicks down on PLACE BET
  16. Sleep 20 ; Wait 20ms before running the next line
  17. MouseClick, left,,,,8,U ; Releases LMB off the PLACE BET BUTTON
  18. Sleep 3 ; Waits 3ms before running the next line. (you can lower this value to 2 or 1 if you're not always winning max prize.)
  19. MouseClick, left, 609, 310,,2,D ; Holds down LMB over the increase bet arrow very fast (the number 2 before ",D" sets the speed.
  20. ; It can be set between 0 and 100 (the lower the number, the faster it moves).
  21. Sleep 10000 ; Waits 10s before running the next line
  22. MouseClick, left,,,,8,U ; Releases the LMB from the "invisible" increase bet arrow.
  23. Sleep 25500 ; Waits 25.5s before running the next line.
  24. MouseClick, left, 412, 581,,8,D ; Clicks down on the BET AGAIN button.
  25. Sleep 20 ; Waits 20ms before running the next line.
  26. MouseClick, left,,,,8,U ; Releases LMB from the BET AGAIN button.
  27. Sleep 300 ; Waits 300ms before running the next line.
  28. MouseClick, left, 545, 505,,8,D ; Clicks down the PLACE BET button.
  29. Sleep 20 ; Waits 20ms before running the next line.
  30. MouseClick, left,,,,8,U ; Releases the button off the PLACE BET button.
  31. Sleep 300 ; Waits 300ms before starting the script back from the top.
  32. }
  33. return
  34.  
  35. ; REMEMBER TO ALWAYS SAVE CHANGES AND RELOAD THE SCRIPT IF YOU MAKE ANY CHANGES TO IT, OTHERIWSE THEY WON'T BE TAKEN INTO EFFECT!
Advertisement
Add Comment
Please, Sign In to add comment