按键精灵 如果找不到图就继续点击这个图 50
FindPic0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intYIfintX>0AndintY>0ThenMoveTointX,...
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX,intY
LeftDoubleClick 1
Else
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX,intY
LeftDoubleClick 1
End If
哪里错了,两个分开都可以执行。。。。求大神帮忙。 展开
If intX > 0 And intY > 0 Then
MoveTo intX,intY
LeftDoubleClick 1
Else
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX,intY
LeftDoubleClick 1
End If
哪里错了,两个分开都可以执行。。。。求大神帮忙。 展开
2个回答
展开全部
do
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
do
MoveTo intX+5,intY+5
LeftDoubleClick 1
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,A2X,A2Y
If A2X > 0 And A2Y > 0 Then
DO
MoveTo A2X+5,A2Y+5
LeftDoubleClick 1
Loop
End If
Loop
End If
Loop
做几个循环就好了,复制上面代码可达成。
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
do
MoveTo intX+5,intY+5
LeftDoubleClick 1
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,A2X,A2Y
If A2X > 0 And A2Y > 0 Then
DO
MoveTo A2X+5,A2Y+5
LeftDoubleClick 1
Loop
End If
Loop
End If
Loop
做几个循环就好了,复制上面代码可达成。
展开全部
逻辑有问题.
图1找到了就结束了.找不到才找图2,图2找到点击然后结束,找不到结束.
按你的意思是要循环?
图1找到了就结束了.找不到才找图2,图2找到点击然后结束,找不到结束.
按你的意思是要循环?
追问
是的。要循环,找到图1就点图1,看到图2就点图2的同时停止点击图1,一直循环下去
追答
do
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX,intY
LeftDoubleClick 1
End If
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX,intY
LeftDoubleClick 1
End If
loop
最简单的找到哪个点哪个.
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询