-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ahk
44 lines (38 loc) · 1.01 KB
/
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
#include common.ahk
; #Warn All, StdOut ; Enable warnings to assist with detecting common errors.
;SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Pixel, Screen
^r::
global P_RATE := 1
if IsImageMatch("manjibiankuang", P_CLM, P_CTM, CP(1500), P_CBM1, "Black") {
x := LAST_IMAGE_X + CP(210)
y := LAST_IMAGE_Y + CP(100)
; MsgBox % LAST_IMAGE_X " " LAST_IMAGE_Y
Click %x% %y%
; MsgBox 匹配
} else {
MsgBox 未找到
}
;ImageSearch, FoundX, FoundY, %x1%, %y1%, %x2%, %y2%, %img%
;if (ErrorLevel = 2)
; MsgBox 错误
;else if (ErrorLevel = 1)
; MsgBox 未找到
;else
; MsgBox 找到了, 位于%FoundX%x%FoundY%.
return
^t::
while (A_Index < 4) {
if IsImageMatch("Mutator_polarity", A_ScreenWidth * 0.9, A_ScreenHeight * 0.2, A_ScreenWidth, A_ScreenHeight * 0.8) {
}
MsgBox exe
Sleep 1000
}
return
^g::
i := 3 + 2 * 2
MsgBox % i
return
OnEnteringGame(){
}