Do
FindPic 0,0,1920,1080,"Attachment:\123.bmp",1,intX,intY
If intX > 0 And intY > 0 Then
Exit Do
Else
Delay 1000
End If
Loop
MoveTo intX, intY
Delay 1000
LeftClick 1
KeyDown "W", 1
Delay 5000
KeyUp "W", 1
Delay 2000
RestartScript
//我帮你,改了一下,把设置运行那里,设置成只运行一次。因为脚本里面无限循环。