推荐你用do loop 循环 ,,我改了下..不知道是你想要的结果吗
Delay 500
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5,intY+5
LeftClick 1
Delay 500
LeftClick 1
Delay 500
Else
Delay 500
FindPic 0,0,1024,768,"Attachment:\5.bmp",0.9,intA,intB
If intA > 0 And intB > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Do
FindPic 0,0,1024,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
FindColor 257,311,403,222,"00DC00",intX,intY
If intX > 0 And intY > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Delay 10
Loop