jmfs.net
当前位置:首页>>关于按键精灵循环找图1和图2必须找到才能结束循环的资料>>

按键精灵循环找图1和图2必须找到才能结束循环

Do //找图循环 FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY If intX > 0 And intY > 0 Then //查找图1并点击 MoveTo intX, intY //找到了立即点击在等待比较好,避免出错 LeftClick Delay 1000 End If FindPic 0,0,1024,768,"Attac...

太简单了

Do Do//无限循环 FindPic 0, 0, 2000,1080, "Attachment:\1.bmp", 0.9, intX, intY If intX > 0 And intY > 0 Then MoveTo intX + 1, intY + 1 Delay 100 LeftClick 1 Delay 100 Exit Do//找到图1,跳出循环 End If Loop 找图时间 = time//得到当...

KeyPress "N", 1'理论上来说第一循环是 do,但是你应该不是要退出do循环Do For 10 Delay 500 FindPic 0, 0, 1024, 768, "Attachment:\达芙妮.bmp", 0.9, intX, intY Delay 500 MoveTo intX + 10, intY + 10 Delay 500 RightClick 1 Delay 500 Rig...

简单啊,找不到则执行的话,换成如下 If intX < 0 And intY < 0 Then 这一句不就行了?而且不管你是找色还是找图。 目测你连intX 跟intY是什么都没搞清楚,那是坐标埃 找到了坐标就会大于0,找不到的坐标是-1所以小于等于0。

DoFindPic 976,749,1133,791,"Attachment:\1.bmp",0.9,intX,intYIf intX > 0 And intY > 0 Then //找到了 Goto 跳出循环 Else End If FindPic 976,749,1133,791,"Attachment:\2.bmp",0.9,intX,intYIf intX > 0 And intY > 0 Then //找到了 Goto ...

do FindPic 0,0,1024,768,"Attachment:\图片A.bmp",0.9,intX,intY If intX > 0 And intY > 0 Then Delay 10000 KeyPress "C", 1 Delay 10000 KeyPress "D", 1 Delay 20000 End If FindPic 0,0,1024,768,"Attachment:\图片b.bmp",0.9,intX,intY I...

执行1 = 0执行2 = 0Do If 执行1 = 1 Then If DateDiff("s", t1, now) > 20 Then ////20秒后再重新开始执行任务1 执行1 = 0 End If End If If 执行2 = 1 Then If DateDiff("s", t2, now) > 10 Then ////10秒后再重新开始执行任务2 执行2 = 0 End ...

i = 1Do FindPic 0,0,1024,768,"Attachment:\"&i&".bmp",0.9,intX,intY If intX > 0 And intY > 0 and i = 1 Then MessageBox "找到图1" i = 2 ElseIf intX > 0 And intY > 0 and i = 2 Then MessageBox "找到图2" i=3 ElseIf intX > 0 And intY...

i = 0 While i = 0 FindPic 0,0,1024,768,"Attachment:\神盾.bmp",0.9,intX,intY //“Attachment:\神盾.bmp”这里自己改 If intX > 0 And intY > 0 Then KeyDown 13 Delay 500 i = 1 End If Delay 500 Wend While i = 1 FindPic 0,0,1024,768,"Att...

网站首页 | 网站地图
All rights reserved Powered by www.jmfs.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com