按键精灵一个脚本放两个区域找图命令能完成第一个,到第二个的时候就找不到图了

2025-04-05 07:38:49
推荐回答(1个)
回答1:

Rem a
FindPic 0,0,1920,1080,"C:\Users\Corp.Corpsky\Pictures\2飞机选项图.bmp",0.9,intX2,intY2
FindPic 0,0,1920,1080,"C:\Users\Corp.Corpsky\Pictures\1.bmp",0.9,intX1,intY1
If intX1 > 0 And intY1 > 0 Then
MoveTo intX1, intY1
Delay 1000
LeftClick 1
Delay 5000
Rem b
If intX2 > 0 And intY2 > 0 Then
MoveTo intX2, intY2
Delay 1000
LeftClick 1
Else
Delay 5000
Goto a

End If
Else
Delay 5000
Goto b
End If

Delay 1000
MoveTo 938, 584
Delay 1000
LeftClick 1
Delay 5000
不知道对不对,自己看看修改。