按键精灵如果发现某个图出现,然后再左键点击另一个图,应该怎么写?

2025-04-07 08:02:26
推荐回答(1个)
回答1:

Do
FindPic 0,0,1024,768,"Attachment:\图1.bmp",0.9,intX,intY //找图一
If intX1 > 0 And intY1 > 0 Then
FindPic 0,0,1024,768,"Attachment:\图2.bmp",0.9,intX,intY //找图二
If intX2 > 0 And intY2 > 0 Then
MoveTo intX1, intY1
LeftClick 1 //点图一
End If
End If
Delay 500
Loop