-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path,center.ahk
34 lines (28 loc) · 1.13 KB
/
,center.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Up::
; searches center of screen for "26" and checks if it's there
imagesearch, x, y, 1280, 0, 2300, 2400, *TransBlack 26c.png
if (ErrorLevel = 0){ ; clicks render if number is detected
imagesearch, x, y, 0, 0, 3840, 2400, render.png
MouseClick left, x, y, 1
}
else if(ErrorLevel = 1){ ; moves onto next search if number is not found
; searches center of screen for "27" and checks if it's there
imagesearch, x, y, 1280, 0, 2300, 2400, *TransBlack 27c.png
if (ErrorLevel = 0){ ; clicks render if number is detected
imagesearch, x, y, 0, 0, 3840, 2400, render.png
MouseClick left, x, y, 1
}
else if(ErrorLevel = 1){ ; moves onto next search if number is not found
; searches center of screen for "60" and checks if it's there
imagesearch, x, y, 1280, 0, 2300, 2400, *TransBlack 60c.png
if (ErrorLevel = 0){ ; clicks render if number is detected
imagesearch, x, y, 0, 0, 3840, 2400, render.png
MouseClick left, x, y, 1
}
else if(ErrorLevel = 1){ ; clicks stop if number is not detected
imagesearch, x, y, 0, 0, 3840, 2400, stop.png
MouseClick left, x, y, 1
}
}
}
return