Do
FindPic 0,0,1920,1080,"C:\Users\Administrator\Desktop\456.bmp",0.9,intX,intY
If intX> 0 And intY> 0 Then
TracePrint "找到"
KeyDown "W", 1
KeyDown "A", 1
Delay 1000
KeyUp "A", 1
Else
TracePrint "找bu到"
End If
Delay 1000
Loop
Do
FindPic 0,0,1920,1080,"C:\Users\Administrator\Desktop\789.bmp",0.8,intX,intY
If intX> 0 And intY> 0 Then
TracePrint "找到"
KeyDown "Esc", 1
Delay 208
KeyUp "Esc", 1
MoveTo 974, 495
Delay 2852
LeftClick 1
MoveTo 878, 591
Delay 5968
LeftDown 1
Delay 278
LeftUp 1
Delay 12862
Else
TracePrint "找bu到"
End If
Delay 1000
Loop
Do
FindPic 0,0,1920,1080,"C:\Users\Administrator\Desktop\369.bmp",0.9,intX,intY
If intX> 0 And intY> 0 Then
TracePrint "找到"
MoveTo 217, 872
Delay 1000
LeftClick 1
Delay 1000
MoveTo 963, 21
Delay 1000
LeftClick 1
Delay 1000
MoveTo 389, 872
Delay 1000
LeftClick 1
Delay 1000
MoveTo 963, 21
Delay 1000
LeftClick 1
Delay 1000
MoveTo 217, 985
LeftClick 1
Delay 1000
MoveTo 963, 21
Delay 1000
LeftClick 1
Else
TracePrint "找bu到"
End If
Delay 1000
Loop
以上是三个脚本,可以自行优化,欢迎大家一起谈论