-
Notifications
You must be signed in to change notification settings - Fork 1
/
SlotsEmpty.ahk
125 lines (112 loc) · 3.54 KB
/
SlotsEmpty.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
Sleep, 1000
Msg0:
Msg0 := 0
Loop, {
If Msg0 = 0
{
Sleep, 200
run, f13.ahk, C:\Users\Bep\Desktop\Bot\keys
Sleep, 500
Msg0 := 1
}
ImageSearch, , , 1392, 148, 1873, 251, *30 C:\Users\Bep\Desktop\Bot\Images\1.png
If ErrorLevel = 1
Sleep, 3000
ImageSearch, , , 1392, 148, 1873, 251, *30 C:\Users\Bep\Desktop\Bot\Images\1.png
If ErrorLevel = 1
Goto, Msg1
Sleep, 1000
}
Msg1:
Msg1 := 0
Loop, {
If Msg1 = 0
{
Sleep, 200
run, f14.ahk, C:\Users\Bep\Desktop\Bot\keys
Sleep, 500
Msg1 := 1
}
ImageSearch, , , 1392, 148, 1873, 251, *40 C:\Users\Bep\Desktop\Bot\Images\1.png
If ErrorLevel = 0
Sleep, 3000
ImageSearch, , , 1392, 148, 1873, 251, *40 C:\Users\Bep\Desktop\Bot\Images\1.png
If Errorlevel = 0
Goto, Msg0
ImageSearch, , , 1392, 254, 1873, 357, *30 C:\Users\Bep\Desktop\Bot\Images\2.png
If ErrorLevel = 1
Sleep, 3000
ImageSearch, , , 1392, 254, 1873, 357, *30 C:\Users\Bep\Desktop\Bot\Images\2.png
If ErrorLevel = 1
Goto, Msg2
Sleep, 1000
}
Msg2:
Msg2 := 0
Loop, {
If Msg2 = 0
{
Sleep, 200
run, f15.ahk, C:\Users\Bep\Desktop\Bot\keys
Sleep, 500
Msg2 := 1
}
ImageSearch, , , 1392, 254, 1873, 357, *40 C:\Users\Bep\Desktop\Bot\Images\2.png
If ErrorLevel = 0
Sleep, 3000
ImageSearch, , , 1392, 254, 1873, 357, *40 C:\Users\Bep\Desktop\Bot\Images\2.png
If ErrorLevel = 0
Goto, Msg1
ImageSearch, , , 1392, 360, 1873, 463, *20 C:\Users\Bep\Desktop\Bot\Images\3.png
If ErrorLevel = 1
Sleep, 3000
ImageSearch, , , 1392, 360, 1873, 463, *20 C:\Users\Bep\Desktop\Bot\Images\3.png
If ErrorLevel = 1
Goto, Msg3
Sleep, 1000
}
Msg3:
Msg3 := 0
Loop, {
If Msg3 = 0
{
Sleep, 200
run, f16.ahk, C:\Users\Bep\Desktop\Bot\keys
Sleep, 500
Msg3 := 1
}
ImageSearch, , , 1392, 360, 1873, 463, *40 C:\Users\Bep\Desktop\Bot\Images\3.png
If ErrorLevel = 0
Sleep, 3000
ImageSearch, , , 1392, 360, 1873, 463, *40 C:\Users\Bep\Desktop\Bot\Images\3.png
If ErrorLevel = 0
Goto, Msg2
ImageSearch, , , 1392, 466, 1873, 569, *30 C:\Users\Bep\Desktop\Bot\Images\4.png
If ErrorLevel = 1
Sleep, 3000
ImageSearch, , , 1392, 466, 1873, 569, *30 C:\Users\Bep\Desktop\Bot\Images\4.png
If ErrorLevel = 1
Goto, Msg4
Sleep, 1000
}
Msg4:
Msg4 := 0
Loop, {
If Msg4 = 0
{
Sleep, 200
run, f17.ahk, C:\Users\Bep\Desktop\Bot\keys
Sleep, 500
Msg4 := 1
}
ImageSearch, , , 1392, 466, 1873, 569, *40 C:\Users\Bep\Desktop\Bot\Images\4.png
If ErrorLevel = 0
Sleep, 3000
ImageSearch, , , 1392, 466, 1873, 569, *40 C:\Users\Bep\Desktop\Bot\Images\4.png
If ErrorLevel = 0
Goto, Msg3
Sleep, 1000
}
=::pause, toggle
-::
ExitApp