加个变量i试试,初始i=2,滑屏一次减1,i=0就退出循环
Dim intX, intY
i=2
Do
FindPic 0, 0, 0, 0, "Attachment:1.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Tap intx, inty
Delay 5000
KeyPress "Back"
Delay 1000
if i>1 then
i=2
Else
i=i+1
End If
Else
Swipe 500, 1200, 500, 800
Delay 3000
i=i-1
End If
if i=0 then
exit do
End If
Loop
你要写什么。。。