jmfs.net
当前位置:首页>>关于虚心请教各位,按键精灵怎样循环找图,根据不同图...的资料>>

虚心请教各位,按键精灵怎样循环找图,根据不同图...

把图片命名为"xxx0", "xxx1"...." xxxN"的形式,定义一个i. 此时,可以用for循环访问图片名称,继而可以找图。一旦找到,可以exit for退出循环. 此时可以用Select Case i来判断找到的是哪张图。思路就这样,不懂再问。

题主,你好!参考代码如下: 使用说明:将五张图片命名为:图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 AX = Plugin.Sys.GetScRX():AY = Plugin.Sys.GetScRY() FindPic 0, 0, AX, AY, "Attachment:\立刻购买.bmp", 0.9, intX, intY If intX > 0 And intY > 0 Then MoveTo intX+5,intY+5 LeftClick 1 Do FindPic 0, 0, AX, AY, "Attachment:\立即...

Do Do FindPic 0,0,1024,768,"Attachment:\神盾.bmp",0.9,intX,intY'神盾.bmp改成你要找的图片名称 If intX > 0 And intY > 0 Then Call 程序1 Exit Do End If Delay 1000 Loop Call 程序2 Loop Sub 程序1 '你的程序 End Sub Sub 程序2 '你的程...

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

a=0 For 20 FindPic 0+a,0,1024+a,768,"Attachment:\导入.bmp",0.9,intX,intY If intX > 0 And intY > 0 Then MoveTo intX,intY LeftClick 1 Delay 400 FindPic 0,0,1024,768,"Attachment:\下载.bmp",0.9,intX,intY If intX > 0 And intY > 0 Th...

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

dim tuaDo tua=Array("A","B","C","D") For i=0 to 3 FindPic 0,0,1024,768,"Attachment:\"&tua(i)&".bmp",0.7,intX,intY If intX > 0 And intY > 0 Then call 你的动作() Exit For End If Next If intX =-1 KeyPress "F5", 1 Else Exit Do End ...

Rem go开头 Goto go结尾 在你要循环的代码前后加上这两个词

//须把图放到附件否则给出图片绝对路径 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 ...

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