按键精灵 循环找图1分钟找不到执行另一条命令 5

想问下各位大神,找不到图的命令和循环找图1分钟的命令添加到哪里。i=0Whilei=0FindPic0,0,1440,900,"Attachment:\1.bmp",0.... 想问下各位大神,找不到图的命令和循环找图1分钟的命令 添加到哪里。
i = 0
While i = 0

FindPic 0,0,1440,900,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
Delay 500
Wend
找到图执行下面的命令
Delay 8793
KeyDown "Z", 1
Delay 77
KeyUp "Z", 1
Delay 1
KeyUp "Z", 1
Delay 3663
KeyDown "2", 1
Delay 1
Delay 1
KeyDown "2", 1
Delay 97
KeyUp "2", 1
Delay 1
Delay 359
KeyDown "Up", 1
Delay 145
KeyUp "Up", 1
Delay 1
Delay 79
KeyDown "Left", 1
Delay 1
Delay 1
KeyDown "Left", 1
Delay 196
KeyDown "Down", 1
Delay 1
Delay 8
KeyUp "Left", 1
Delay 88
KeyUp "Down", 1
Delay 72
KeyDown "Right", 1
Delay 155
KeyUp "Right", 1
Delay 1
Delay 6316
KeyDown "1", 1
Delay 78
KeyUp "1", 1
Delay 1
Delay 1
KeyUp "1", 1
Delay 7395
KeyDown "1", 1
Delay 1
Delay 100
KeyUp "1", 1
Delay 8471
KeyDown "2", 1
Delay 92
KeyUp "2", 1
Delay 1
Delay 455
KeyDown "Up", 1
Delay 1
Delay 172
KeyUp "Up", 1
Delay 24
KeyDown "Left", 1
Delay 1
Delay 183
KeyDown "Down", 1
Delay 24
KeyUp "Left", 1
Delay 76
KeyUp "Down", 1
Delay 1
Delay 43
KeyDown "Right", 1
Delay 160
KeyUp "Right", 1
Delay 7799
KeyDown "1", 1
Delay 79
KeyUp "1", 1
Delay 1
Delay 7800
KeyDown "1", 1
Delay 71
KeyUp "1", 1
Delay 10000
展开
 我来答
xoxoiy
2013-04-09
知道答主
回答量:21
采纳率:0%
帮助的人:17.8万
展开全部
forcc=60 '这里单位是秒,表示60秒
for forcc '这意思是循环forcc次,这个forcc的值是60,加上下面的延时就是60*1000刚好是一分钟
FindPic 0,0,1440,900,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
Exit for '这里找到了图就跳出循环
Else
//没找到图时要执行的命令添加在这里
End If
Delay 1000 '这里延时一秒,如果这里的值越小,forcc的值就要加大
Next
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式