FindPic 0,0,1024,768,"Attachment:\神盾.bmp",0.9,intX,intYIf intX > 0 And intY > 0 Then //执行任务语句Else i = i + 1If i > 5 Then RestartScript End IfEnd If希望能帮到你