'ͼƬ×öºÃ °ÑͼƬÌí¼Óµ½¸½¼þÖÐ Rem a1 'ÕÒͼ£¬ÆÁÄ»·¶Î§0,0,1024,768¡£¿É¸ù¾Ýʵ¼Ê¸ü¸Ä¡£ '·¾¶Attachment:\Éñ¶Ü.bmp¿É¸ù¾Ýʵ¼Ê¸ü¸Ä ÏàËƶÈ0.9 ±£´æÕÒµ½µÄͼƬ×ø±êµ½intX,intY FindPic 0,0,1024,768,Attachment:\Éñ¶Ü.bmp,0.9,intX,intY //ÒÔÏÂÊÇÌõ¼þÅжϣ»Èç¹û×ø±ê´óÓÚ0£¬ÄÇô¾Í˵Ã÷ÕÒµ½ÁË¡£ If intX 0 And intY 0 Then Goto a1'ÕÒµ½ÔòÖØÐÂÔÙÕÒ Else'·ñÔò 'Èç¹ûûÕÒµ½ Ö´ÐÐʲôÃüÁî×Ô¼º¼Ó½øÈ¥ End If
Äã°Ñͬһ¼¶±ðÒªÕÒµÄͼ·ÅÈëÒ»¸öFORÑ»·(»òÕßDOÑ»·,ÕÒµ½ºóµã»÷ÍêÖ±½ÓÍ˳öÑ»·£¬Ö´ÐÐÒÔºóµÄ½Å±¾£¬ÄÇôÕâ²ãµÄËùÓÐÕÒͼ¶¼²»»áÔÙÖ´ÐÐÁË) For 1 FindPic 0, 0, 1360, 768, Attachment:\¹ºÂòÀ×.bmp, 0.9, intX, intY If intX 0 And intY 0 Then Call µã»÷ Exit For End If FindPic 0, 0, 1360, 768, Attachment:\¹ºÂòľ.bmp, 0.9, intX, intY If intX 0 And intY 0 Then Call µã»÷ Exit For End If FindPic 0, 0, 1360, 768, Attachment:\¹ºÂòË®.bmp, 0.9, intX, intY If intX 0 And intY 0 Then Call µã»÷ Exit For End If FindPic 0, 0, 1360, 768, Attachment:\¹ºÂò»ð.bmp, 0.9, intX, intY If intX 0 And intY 0 Then Call µã»÷ Exit For End If next »òÕßÄã°Ñͬһ¼¶ÒªÕÒµÄͼ È«²¿ÓÃElse À´±íʾ£¬Èç¹ûÕÒµ½Í¼ÒÔºóElseÊDz»»á³ÉÁ¢µÄ~~
FindPic 411,62,635,88,¸½¼þÖ¸¶¨µÄͼ.bmp,0.8,intX,intY If intX 0 And intY 0 Then //ÕâÀïÊÇÕÒµ½Í¼Æ¬ºóÖ´ÐеĴúÂë,Èç¹ûÕÒµ½Í¼Æ¬²»ÏëÖ´ÐÐ ÕâÀï¿ÉÒÔ²»Ð´ Else //·ñÔò //ÕâÀïÃæÊÇÕÒ²»µ½Í¼Æ¬ËùÖ´ÐеĴúÂë End If
´úÂëÈçÏÂ: Do FindPic 0, 0, 1440,980, Attachment:\hl.bmp, 0.9, intX, intY If intX -1 Then //¼ÌÐøÕÒͼ Else //Ö´ÐÐÆäËû²Ù×÷ //Exit Do //Ìø³öÑ»· End If Delay 200 Loop