Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Process,Priority,,High
- ^+p::reload ; Ctrl + Shift + p pauses the script (it'll start from the top if you nex time you press Ctrl + Shift + x)
- ^+x:: ; Ctrl + Shift + x starts the script
- ; PLEASE NOTE THAT THE SCRIPT ONLY WORKS IF YOU SET THE GAME TO WINDOWED MODE AND THE RESOLUTION TO 800X600, ALSO,
- ; IT MAY NOT WORK IF YOU HAVE THE SCALING ON WINDOWS SET HIGHER THAN 100%!
- Loop ; Makes the script run indefinitely until the "reload" hotkey is pressed.
- {
- WinActivate, ahk_exe GTA5.exe
- Sleep 200
- MouseClick, left, 300, 200,,8,D ; Clicks down on the first horse
- Sleep 20 ; Waits 20ms before running the next line (ALL THESE 20MS DELAYS BETWEEN CLICK DOWN AND CLICK UP ARE NECESSARY, OTHERWISE THE
- ; GAME WON'T DETECT THE CLICKS, DON'T LOWER THEM).
- MouseClick, left,,,,8,U ; Releases Left button (LMB) off the first horse
- Sleep 200 ; Waits 200ms before running the next line
- MouseClick, left, 513, 463,,8,D ; Clicks down on PLACE BET
- Sleep 20 ; Wait 20ms before running the next line
- MouseClick, left,,,,8,U ; Releases LMB off the PLACE BET BUTTON
- 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.)
- MouseClick, left, 609, 310,,2,D ; Holds down LMB over the increase bet arrow very fast (the number 2 before ",D" sets the speed.
- ; It can be set between 0 and 100 (the lower the number, the faster it moves).
- Sleep 10000 ; Waits 10s before running the next line
- MouseClick, left,,,,8,U ; Releases the LMB from the "invisible" increase bet arrow.
- Sleep 25500 ; Waits 25.5s before running the next line.
- MouseClick, left, 412, 581,,8,D ; Clicks down on the BET AGAIN button.
- Sleep 20 ; Waits 20ms before running the next line.
- MouseClick, left,,,,8,U ; Releases LMB from the BET AGAIN button.
- Sleep 300 ; Waits 300ms before running the next line.
- MouseClick, left, 545, 505,,8,D ; Clicks down the PLACE BET button.
- Sleep 20 ; Waits 20ms before running the next line.
- MouseClick, left,,,,8,U ; Releases the button off the PLACE BET button.
- Sleep 300 ; Waits 300ms before starting the script back from the top.
- }
- return
- ; 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