call 开启内挂()
Sub 开启内挂
Delay 1000
找开启内挂按钮()
End Sub
Function 找开启内挂按钮
Delay 2000
Dim intX,intY
FindPic 68,581,119,727,"Attachment:开启内挂.png","252525",0,0.8,intX,intY
If intX > -1 And intY > -1 Then
TracePrint "开启内挂:",intX,intY
Delay 100
Tap intX, intY
找开启内挂按钮 = True
Else
TracePrint "没找到开启内挂."
找开启内挂按钮 = False
End If
End Function
为何在 找开启内挂按钮()的上面加入延迟就找不到图片,去掉延迟就能找到图片