按键精灵9找多图问题,求教大神!100分在线等!!!

2024-11-16 16:06:43
推荐回答(1个)
回答1:

//请把图片zhong改为zhong1,其它图片不变
x1=656:y1=366
x2=1180:y2=964
//先把上面找图范围写好
do
MoveTo 1078, 318
Delay 500
MoveTo 908,318
Delay 500
for n = 1 to 6
FindPic x1,y1,x2,y2,"Attachment:\zhong"&n&".bmp",0.9,x,y
//这里可自行添加更多图片判断
If x>0 and y>0
MoveTo x+5,y+5
Delay 400
LeftClick 1
Exit do
End If
Next
Delay 500
Loop