按键精灵:循环一分钟后跳出循环执行另一个操作然后执行完操作能否再重复循环
DosTime=Plugin.Sys.GetTime()a=0FindColor1443,769,1617,781,"000000-ffb666",intX,intYIf...
Do
sTime = Plugin.Sys.GetTime()
a = 0
FindColor 1443,769,1617,781,"000000-ffb666",intX,intY
If intX > 0 And intY > 0 Then
a=1
Exit Do
//时间未超过一分钟,识别到了验证码,下一步
End If
sTime1 = Plugin.Sys.GetTime()
Delay 200
Loop Until sTime1 - sTime >= 1000 * 60
//时间超过1分钟
If a = 0 Then
MoveTo 1551, 193
LeftClick 1
MoveTo 1525, 177
Delay 200
LeftClick 1
Delay 200
//返回输入手机号码界面
MoveTo 1316, 775
Delay 500
LeftClick 1
Delay 500
MoveTo 1858, 695
Delay 500
LeftClick 1
Delay 500
//删除号码
MoveTo 226, 1057
Delay 200
LeftClick 1
Delay 200
//最小化Mct
Call 一分钟5
Delay 200
Call 手机号码5
Delay 200
Call 区分手机5
Delay 200 展开
sTime = Plugin.Sys.GetTime()
a = 0
FindColor 1443,769,1617,781,"000000-ffb666",intX,intY
If intX > 0 And intY > 0 Then
a=1
Exit Do
//时间未超过一分钟,识别到了验证码,下一步
End If
sTime1 = Plugin.Sys.GetTime()
Delay 200
Loop Until sTime1 - sTime >= 1000 * 60
//时间超过1分钟
If a = 0 Then
MoveTo 1551, 193
LeftClick 1
MoveTo 1525, 177
Delay 200
LeftClick 1
Delay 200
//返回输入手机号码界面
MoveTo 1316, 775
Delay 500
LeftClick 1
Delay 500
MoveTo 1858, 695
Delay 500
LeftClick 1
Delay 500
//删除号码
MoveTo 226, 1057
Delay 200
LeftClick 1
Delay 200
//最小化Mct
Call 一分钟5
Delay 200
Call 手机号码5
Delay 200
Call 区分手机5
Delay 200 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询