帮忙看一下,错在哪里了,第二遍文字不执行
按键精灵吧
全部回复
仅看楼主
level 1
9698918 楼主
模仿一个游戏内喊话,第一遍执行正常,第二遍到输入文字的地方,不输入文字
Dim intX, intY
FindPic 0, 0, 0, 0, "Attachment:1世界.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Delay 1000
Tap intX, intY
InputText "大家好"
End If
Delay 1000
FindPic 0, 0, 0, 0, "Attachment:2确定.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Delay 1000
Tap intX, intY
End If
FindPic 0, 0, 0, 0, "Attachment:3发送.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Delay 1000
Tap intX, intY
End If
Delay 3000
FindPic 0, 0, 0, 0, "Attachment:1世界.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Delay 1000
Tap intX, intY
InputText "大家好"
End If
Delay 1000
FindPic 0, 0, 0, 0, "Attachment:2确定.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Delay 1000
Tap intX, intY
End If
FindPic 0, 0, 0, 0, "Attachment:3发送.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Delay 1000
Tap intX, intY
End If
2021年02月05日 08点02分 1
吧务
level 15
排查一下有没有找到图
2021年02月05日 10点02分 2
上下两段代码完全一样,复制的执行2次,应该不存在找图失败的问题,就是执行第二次的时候不输入文字
2021年02月05日 10点02分
@9698918 不一定,也许命令早了,图还没出现,命令就过去了
2021年02月05日 10点02分
level 3
衔接处加个延迟试试
2021年02月06日 00点02分 3
1