Created
February 25, 2020 23:52
-
-
Save joshhunt/0cf1d007b9973af447ccd027d407278a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, force | |
#NoEnv | |
#MaxThreadsPerHotkey 2 | |
f7:: | |
Toggle := !Toggle | |
loop | |
{ | |
If not Toggle | |
break | |
Send, {Click} | |
sleep 1 | |
} | |
return | |
f6:: | |
Toggle2 := !Toggle2 | |
loop | |
{ | |
If not Toggle2 | |
break | |
; Donate 4 times | |
Loop, 4 { | |
If not Toggle2 | |
break | |
SoundBeep, 523, 50 | |
Send, {Click, down} | |
sleep 3000 | |
Send, {Click, up} | |
sleep 650 | |
} | |
SoundBeep, 650, 25 | |
sleep 25 | |
SoundBeep, 650, 25 | |
sleep 25 | |
SoundBeep, 650, 25 | |
sleep 25 | |
} | |
return | |
moveMouseRel(x, y) { | |
MouseMove, x, y, 5, R | |
} | |
goToPage(pageNum) { | |
; Reset back to first page | |
Send, {Left} | |
sleep 50 | |
Send, {Left} | |
sleep 50 | |
if (pageNum = 1) { | |
; do nothing, we're already there! | |
} else if (pageNum = 2) { | |
Send, {Left} | |
sleep 50 | |
} else if (pageNum = 3) { | |
Send, {Left} | |
sleep 50 | |
Send, {Left} | |
sleep 50 | |
} | |
sleep 50 | |
} | |
lineInTheSand() { | |
goToPage(2) | |
moveMouseRel(130, 658) | |
} | |
steelfeatherRepeater() { | |
goToPage(2) | |
moveMouseRel(-144, 417) | |
} | |
f9:: | |
Toggle := !Toggle | |
loop | |
{ | |
If not Toggle | |
break | |
; Start mouse over donate | |
SoundBeep, 523, 50 | |
MouseMove, 2000, 357, 5 | |
sleep 100 | |
; lineInTheSand() | |
steelfeatherRepeater() | |
sleep 100 | |
; Buy 4 bounties | |
Loop, 4 { | |
If not Toggle | |
break | |
SoundBeep, 523, 50 | |
Send, {Click, down} | |
sleep 1700 | |
Send, {Click, up} | |
sleep 850 | |
} | |
; move mouse to page 1 and click | |
goToPage(1) | |
; move mouse down to Donate | |
MouseMove, -323, 192, 5, R | |
sleep 100 | |
; Donate 4 times | |
Loop, 4 { | |
If not Toggle | |
break | |
SoundBeep, 523, 50 | |
Send, {Click, down} | |
sleep 3250 | |
Send, {Click, up} | |
sleep 700 | |
} | |
; Open bounties | |
Send, {F4} | |
sleep 1000 | |
; move mouse to first bounty | |
MouseMove, 290, 0, 5, R | |
sleep 100 | |
; Turn in 4 bounties | |
Loop, 4 { | |
SoundBeep, 523, 50 | |
Send, {Click} | |
sleep 500 | |
} | |
; Close bounties | |
Send, {Esc} | |
; move mouse back to donate | |
MouseMove, -290, 0, 5, R | |
; Wait for bounty screen to close and vendor ui to reappear. It's slow | |
sleep 3000 | |
; Break only during dev | |
; break | |
} | |
return | |
; Test opening bounties | |
f10:: | |
toggle := !toggle | |
loop | |
{ | |
If not toggle | |
break | |
; Open bounties | |
Send, {F4} | |
sleep 1000 | |
; move mouse to first bounty | |
MouseMove, 290, 0, 5, R | |
sleep 100 | |
; Turn in 4 bounties | |
Loop, 4 { | |
Send, {Click} | |
sleep 500 | |
} | |
; Close bounties | |
Send, {Esc} | |
; move mouse back to donate | |
MouseMove, -290, 0, 5, R | |
; Break only during dev | |
break | |
} | |
return | |
^r:: ; press control+r to reload | |
SoundBeep, 500, 50 | |
Reload | |
SoundBeep, 600, 50 | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment