View difference between Paste ID: SGJgYrL5 and 1FSsUuAL
SHOW: | | - or go back to the newest paste.
1-
SetTitleMatchMode 2
1+
SetControlDelay -1
2-
x := 915
2+
3-
y := 585
3+
f7:: ; hover over Level Up button, press f7
4-
fire := 0
4+
MouseGetPos X1, Y1, actWin
5
loop {
6-
PgUp::SetTimer, AutoFire, % (fire := !fire) ? "1000" : "Off"
6+
	ControlClick x50 y150, ahk_id %actWin%,,,, NA
7
	ControlSend,, {ctrl down}, ahk_id %actWin%
8-
AutoFire:
8+
	ControlClick, x%X1% y%Y1%, ahk_id %actWin%,,,, NA
9-
ControlClick,% "x" x " y" y, Play Crusaders of the Lost Idols,,,,Pos
9+
	ControlSend,, {ctrl up}, ahk_id %actWin%
10-
return
10+
	sleep 2000
11
}
12
13
f8:: ; hover over click area, press f8
14
MouseGetPos X2, Y2, actWin
15
SetTimer, ClickEnemy, 20
16
return
17
18
ClickEnemy:
19
ControlClick, x%X2% y%Y2%, ahk_id %actWin%,,,, NA
20
return
21
22
f9::pause ; pauses timer
23
f10::reload ; turns off timer