按键精灵怎么让多个找图,找到第一个在找下一个?直至全部找完 ,然后一小时后循环一次
我这样弄对么总觉得哪里不对新手求教For10000FindPic0,0,1500,800,"Attachment:\1.bmp",0.9,intX,intYIfintX>...
我这样弄对么 总觉得哪里不对 新手求教
For 10000
FindPic 0,0,1500,800,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\5.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\6.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 3600000
Next 展开
For 10000
FindPic 0,0,1500,800,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\5.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 1000
FindPic 0,0,1500,800,"Attachment:\6.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
Delay 1000
End If
Delay 3600000
Next 展开
1个回答
2018-08-04
展开全部
题主你好,修改代码如下:(满意记得采纳)
Do
i = 1
Do While i < 7
FindPic 0,0,1500,800,"Attachment:\"&i&".bmp",0.9,intX,intY
If intX > 0 Then
MoveTo intX+5, intY+5
Delay 1000
LeftClick 1
i = i + 1
Else
i = i
End If
Loop
For 3600
Delay 1000
Next
Loop
更多追问追答
追问
这个是可以第一个图点击并 弹出窗口后就不会循环了么 然后继续下一步的操作?
还有就是 是不是所有的都这样设置循环 ?
然后最后设置一小时?
追答
你运行代码,直接测试下
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |