用按键精灵,如何让他找一个图像,找到了才找下一个图像,图像没找到则继续找,直到找到为止

如题所述

Rem 找图像1
FindPic 0,0,1024,768,"Attachment:\图像1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Goto 找图像2//如果找到图像1,那么跳出循环,找图像2
End If
Goto 找图像1//如果找不到图像1,那么继续循环,找图像1

Rem 找图像2
FindPic 0,0,1024,768,"Attachment:\图像2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
。。。。。//到了图像2后,执行
End If
温馨提示:答案为网友推荐,仅供参考
相似回答