按键精灵循环找图后执行下一个循环命令,再找到图后执行下下一个循环命令。怎么写啊
当按键精灵执行“循环命令1”的时候,突然找到图片“A”,则自动停止“循环命令1”(并同时关闭图片“A”/按回车键就能关闭),然后执行“循环命令2”,然后接着突然又找到图片...
当按键精灵执行“循环命令1”的时候,突然找到图片“A”,则自动停止“循环命令1”(并同时关闭图片“A”/按回车键就能关闭),然后执行“循环命令2”,然后接着突然又找到图片“A”(回车关闭),然后执行“循环命令3”。这样一直叠加的命令要怎么写啊!!!...
展开
展开全部
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,"Attachment:\神盾.bmp",0.9,intX,intY
//“Attachment:\神盾.bmp”这里自己改
If intX > 0 And intY > 0 Then
KeyDown 13
Delay 500
i = 2
End If
Delay 500
Wend
While i = 2//依的改次类推
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 = 3 //依的改次类推
End If
Delay 500
Wend
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,"Attachment:\神盾.bmp",0.9,intX,intY
//“Attachment:\神盾.bmp”这里自己改
If intX > 0 And intY > 0 Then
KeyDown 13
Delay 500
i = 2
End If
Delay 500
Wend
While i = 2//依的改次类推
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 = 3 //依的改次类推
End If
Delay 500
Wend
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询