a=0 b=0 c=0 d=0 e=0 intX=0 intY=0 Rem ͼƬ1 FindPic intX+10,intY+10,1024,768,Attachment:\ͼƬ1.bmp,0.9,intX,intY If intX 0 And intY 0 Then a=a+1 Goto ͼƬ1 End If MessageBox ͼƬ1µÄÊýÁ¿Îª&a
intX=0 intY=0 Rem ͼƬ2 FindPic intX+10,intY+10,1024,768,Attachment:\ͼƬ2.bmp,0.9,intX,intY If intX 0 And intY 0 Then b=b+1 Goto ͼƬ2 End If MessageBox ͼƬ2µÄÊýÁ¿Îª&b
intX=0 intY=0 Rem ͼƬ3 FindPic intX+10,intY+10,1024,768,Attachment:\ͼƬ3.bmp,0.9,intX,intY If intX 0 And intY 0 Then c=c+1 Goto ͼƬ3 End If MessageBox ͼƬ3µÄÊýÁ¿Îª&c
intX=0 intY=0 Rem ͼƬ4 FindPic intX+10,intY+10,1024,768,Attachment:\ͼƬ4.bmp,0.9,intX,intY If intX 0 And intY 0 Then d=d+1 Goto ͼƬ4 End If MessageBox ͼƬ4µÄÊýÁ¿Îª&d
intX=0 intY=0 Rem ͼƬ5 FindPic intX+10,intY+10,1024,768,Attachment:\ͼƬ5.bmp,0.9,intX,intY If intX 0 And intY 0 Then e=e+1 Goto ͼƬ5 End If MessageBox ͼƬ5µÄÊýÁ¿Îª&e ½«Í¼Æ¬·ÅÈë½Å±¾¸½¼þ£¬²¢ÒÀ´ÎÃüÃûΪͼƬ1-5
Dim ta(4), tb(1)//ÉêÃ÷Á½¸öÊý×éÀ´´æ·ÅͼƬ//¼ÙÉèͼAÀàÓÐ5ÕÅͼ.ͼµÄÃû³ÆΪ:ͼA-1,ͼA-2...For i = 0 To UBound(ta) i1 = i+1 ta(i) = Attachment:\ͼA- & i1 & .bmp//Ñ»·¸øÊý×éA¸³ÖµNextFor i = 0 To UBound(tb) i1 = i+1 tb(i) = Attachment:\ͼB- & i1 & .bmp//Ñ»·¸øÊý×éB¸³ÖµNexti = 0Do FindPic 0,0,1024,768,ta(i),0.9,intX,intY If intX 0 And intY 0 Then i1 = 0 Do FindPic 0, 0, 1024, 768, tb(i1), 0.9, intX, intY If intX 0 And intY 0 Then MoveTo intX + 5, intY + 5 Delay 10 LeftClick 1 Exit Do//ÕÒµ½µ¥»÷ºóÌø³öÕÒͼBµÄÑ»· Else i1 = i1 + 1//ÕÒ²»µ½¾ÍÕÒBÀàÏÂÒ»¸öͼ If i1 = 2 Then //Èç¹ûBÀ඼ûÓÐÕÒµ½,¾ÍÒ»Ö±²»Í£µÄÕÒ i1 = 0 End If End If Delay 200 loop End If i = i + 1 If i UBound(ta) Then //Èç¹ûÕÒµ½AÀà×îºóÒ»ÕÅͼ,Ôò·µ»ØÖØÕÒ i = 0 End If Delay 200LoopÈç¹ûͼƬµÄÃüÃû·½Ê½²»¹æÔò,¾ÍÖ»ÄÜÒ»¸öÒ»¸öµÄ¸øÊý×鸳ֵ