-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.ahk
55 lines (46 loc) · 871 Bytes
/
test.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
#Include 显示通知.ahk
$k::
{
StartTime := A_TickCount
while(true){
MouseMove, 269, 548 ,2
Sleep, 100 ;
PixelGetColor, color, 190, 543
if(color = 0x2B1600 or color = 0x532D00){
Click Left ;
StartTime := A_TickCount
}else{
showMsg("zhaobudao")
}
ElapsedTime := A_TickCount - StartTime
if(ElapsedTime > 3000){
showMsg("超时退出")
MsgBox, %color%
break
}
}
}
$l::
{
MouseMove, 269, 548 ,2
Sleep, 100 ;
PixelGetColor, color, 190, 543
MsgBox, %color%
}
return
checkGem(){
MouseMove, 169, 148 ,2
Sleep, 100 ;
MouseMove, 269, 548 ,2
PixelGetColor, color, 190, 543
if(color = 0x2B1600 or color = 0x532D00){
Click Left ;
}else{
showMsg("zhaobudao")
}
}
;Screen: 183, 543 (less often used)
;Window: 183, 543 (default)
;Client: 183, 543 (recommended)
;Color: 003B63 (Red=00 Green=3B Blue=63)