按键精灵 一直找图循环找A图 找到后执行找B图
答案:1 悬赏:10 手机版
解决时间 2021-11-13 19:40
- 提问者网友:遮云壑
- 2021-11-13 15:10
按键精灵 一直找图循环找A图 找到后执行找B图
最佳答案
- 五星知识达人网友:人類模型
- 2021-11-13 16:07
//须把图放到附件否则给出图片绝对路径
PutAttachment ".","*.bmp"
rem a
FindPic 0,50,1023,767,"a.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
//没找到循环找a
goto a
End If
rem b
FindPic 0,50,1023,767,"b.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
//没找到循环找b
goto b
End If追问一直循环找A图,B图出现直接找B图执行命令追答//那要把代码放一块,方法很多,下面是一种,意思是找不到A图找B图。最后跳转标记A循环找图
rem a
FindPic 0,50,1023,767,"a.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
FindPic 0,50,1023,767,"b.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
End If
End If
goto a
PutAttachment ".","*.bmp"
rem a
FindPic 0,50,1023,767,"a.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
//没找到循环找a
goto a
End If
rem b
FindPic 0,50,1023,767,"b.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
//没找到循环找b
goto b
End If追问一直循环找A图,B图出现直接找B图执行命令追答//那要把代码放一块,方法很多,下面是一种,意思是找不到A图找B图。最后跳转标记A循环找图
rem a
FindPic 0,50,1023,767,"a.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
FindPic 0,50,1023,767,"b.bmp",0.9,intX,intY
If intX>0 and intY>0 Then
Else
End If
End If
goto a
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯