按键精灵中如何判断一个图片是否出现然后点击?
FindPic500,400,750,550,"Attachment:\601.bmp",0.9,intX,intYIfintX>0AndintY>0ThenEndIfM...
FindPic 500,400,750,550,"Attachment:\601.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
End If
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
FindPic 0,0,1366,768,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
End If
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
FindPic 0,0,1366,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
End If
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
以上是这段代码....怎么判断如:601图片出现了然后点击,如果没出现则暂时不点继续寻找601图片 展开
If intX > 0 And intY > 0 Then
End If
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
FindPic 0,0,1366,768,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
End If
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
FindPic 0,0,1366,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
End If
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
以上是这段代码....怎么判断如:601图片出现了然后点击,如果没出现则暂时不点继续寻找601图片 展开
2个回答
展开全部
rem zhaotu
FindPic 0,0,1024,768,"Attachment:\601.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
else
goto zhaotu
End If
//还有End if 的位置不对,在判断语句中,符合条件就执行的语句要包括在if ……end if 之间的。
例如:
FindPic 0,0,1024,768,"Attachment:\601.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
End If
FindPic 0,0,1024,768,"Attachment:\601.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
else
goto zhaotu
End If
//还有End if 的位置不对,在判断语句中,符合条件就执行的语句要包括在if ……end if 之间的。
例如:
FindPic 0,0,1024,768,"Attachment:\601.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 100
LeftClick 1
Delay 100
End If
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |