按键精灵一个程序循环,第二次循环在输入02后,按键为啥不执行后续找图命令?
Delay200KeyPress"BackSpace",2Delay200KeyPress"Num0",1Delay200KeyPress"Num1",1Delay200...
Delay 200
KeyPress "BackSpace", 2
Delay 200
KeyPress "Num 0", 1
Delay 200
KeyPress "Num 1", 1
Delay 200
Do
FindPic 0,0,1024,768,"Attachment:\1.登录.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
Do
FindPic 0,0,1024,768,"Attachment:\2.准备删除账号.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
KeyPress "BackSpace", 2
Delay 200
KeyPress "Num 0", 1
Delay 200
KeyPress "Num 2", 1
Delay 500
Do
FindPic 0,0,1024,768,"Attachment:\1.登录.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
Do
FindPic 0,0,1024,768,"Attachment:\6.准备删除账号.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
Delay 200 展开
KeyPress "BackSpace", 2
Delay 200
KeyPress "Num 0", 1
Delay 200
KeyPress "Num 1", 1
Delay 200
Do
FindPic 0,0,1024,768,"Attachment:\1.登录.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
Do
FindPic 0,0,1024,768,"Attachment:\2.准备删除账号.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
KeyPress "BackSpace", 2
Delay 200
KeyPress "Num 0", 1
Delay 200
KeyPress "Num 2", 1
Delay 500
Do
FindPic 0,0,1024,768,"Attachment:\1.登录.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
Do
FindPic 0,0,1024,768,"Attachment:\6.准备删除账号.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftClick 1
Delay 200
Exit Do
End If
Loop
Delay 200 展开
1个回答
展开全部
怎么个不执行?是脚本停止运行还是无线循环找图但是找不动?如果是停止运行,看看是不是过程中按下停止按键,或者重启试试,如果是找不到图,看看是1.登录.bmp这个图片发生了变化还是怎么样的。
再具体一点。
再具体一点。
更多追问追答
追问
是1.登录.bmp这个图片发生了变化。登录框有时候能直接输入账号,有时候需要触控一下才能输入账号。
追答
两种办法,一种是把变化了的图截下来,同时找两个图,找到哪个都可以继续执行。另一种就控制鼠标点击一下,无论是否需要点,都让鼠标点一下。推荐第二种
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询