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...

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 ...

题主,你好!参考代码如下: 使用说明:将五张图片命名为:图1.bmp图2.bmp图3.bmp图4.bmp图5.bmp Do For i = 1 To 4 FindPic 0, 0, 1024, 768, "Attachment:\图5.bmp", 0.9, intX, intY If intX - 1 Then MoveTo intX + 1, intY + 1 LeftClick 1...

do if 找到图1 Then moveto 图1 鼠标点击 elseif 找到图2 Then moveto 图2 鼠标点击 elseif ..... .......... endif loop

Rem a FindPic 0,0,0,0,"Attachment:立即登录.png","000000",0,0.9,intX,intY If intX > -1 And intY > -1 Then Tap intX,intY Delay 2000 else Delay 2000 goto a End If 记得脚本里边附件要放图片进去~

在最上面加个do 最下面加个loop 然后在判断条件下 加个退出do循环 就是在 (如果intx>0并且inty>0则 )后面加个Exit do 意思就是 找到图 就会执行这个退出循环的语句Exit do 退出来 如果找不到 下面的代码都不会执行 全部跳过 跑回上面继续循环...

DoFindPic 0,0,1024,768,"图片1.bmp",0.9,intX,intYIf intX>0 and intY>0 Then MoveTo intX,intYEnd IfFindPic 0, 0, 1024, 768, "图片2.bmp", 0.9, intX, intYIf intX>0 and intY>0 Then MoveTo intX,intYEnd IfDoMoveTo 1, 1LeftClick 1FindPi...

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//得到当...

你可以重复运行脚本或者用一个do loop循环 Do FindPic 0,0,1024,768,"Attachment:\神盾.bmp",0.9,intX,intY If intX > 0 And intY > 0 Then End If FindPic 0,0,1024,768,"Attachment:\神盾.bmp",0.9,intX,intY If intX > 0 And intY > 0 Then E...

太简单了

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