Dim picPath1
zt1 ("xk4.png")
Delay 500
Function zt1(picPath1)
Dim intX1, intY1 //如果没有找到,intX1和intY1的值都会被置为-1
For 10
Delay 500
FindPic 0, 0, 0, 0, "Attachment:"&picPath1, "000000", 0, 0.9, intX1, intY1
//如果没有找到,intX1和intY1的值都会被置为-1
If intX1 > -1 And intY1 > -1 Then
TracePrint intX1&","&intY1
Delay 200
Tap intX1, intY1
Delay 200
Exit For
End If
Next
End Function
Dim picPath
zt ("zant.png")
Delay 500
Function zt(picPath)
Dim intX, intY //如果没有找到,intX和intY的值都会被置为-1
For 1000
Delay 10000
FindPic 0, 0, 0, 0, "Attachment:"&picPath, "000000", 0, 0.9, intX, intY
//如果没有找到,intX和intY的值都会被置为-1
If intX > -1 And intY > -1 Then
TracePrint intX&","&intY
Delay 200
Tap 35,927
Delay 200
Exit For
End If
Next
End Function
Do
TracePrint zt1(picPath1)
Delay 1000
TracePrint zt(picPath)
Delay 1000
Loop