çªç ´æ¾å¾éå¶ãååã(361度 æé®ç²¾çµæ¾å¾ç³»åä¹äº)
ããè¿æç« ææ¨å¤©å°±å好äºï¼ä»å¤©ææåç°æ¨é£ä»¥åè¿ä¸ä¸ªç±»ä¼¼çå¸åãä¸è¿ä»åèæ¬å
¨æ¯gotoï¼çå¾æ头æï¼å°ç°å¨æé½æ²¡çå¾å
¨æç½ï¼èä¸é£èæ¬åªæå¾ç计æ°åè½ï¼æ以æè¿æ¯æèªå·±çæç« è´´åºæ¥ã
ããæé®ç²¾çµçæ¾å¾åè½åªè½è¾åºæ¾å°ç第ä¸ä¸ªå¾çåæ ï¼å¦ä½è®©å®æ¾è¾åºæ¾å¾èå´å
ææ符åçå¾çåæ å¢ï¼ææ2个æ¹æ¡ï¼
ããï¼ãææ¾å¾çèå´è®¾å®æåå¾çä¸æ ·å¤§ï¼ç¶åæè¿ä¸ªèå´çæ¡ä»¥ä¸ä¸ªæ¬¡ç§»ä¸ä¸ªåç´ çæ¹å¼ï¼ç§»éæ´ä¸ªæ¾å¾èå´ï¼æ¯ç§»ä¸æ¬¡å°±æ¾ä¸æ¬¡å¾ã
ããï¼ãæ³åæ³è®©æ¾å¾çå½ä»¤å¨æ¾å°ç¬¬ä¸ä¸ªå¾å继ç»æ¾ä¸å»ã
ããæé¦å
è¯çæ¯ç¬¬ä¸ä¸ªæ¹æ¡ï¼æ¬ä»¥ä¸ºå®ä¼è¿è¡å¾å¾å¿«ï¼ä½è¿è¡çé度让æé¾ä»¥å¿åã以å®çé度ï¼æ«å®å
¨å±è¦å 个å°æ¶ï¼è¿è¡äºä¸ä¼å¿æå°±æå®å
³äºãåæäºä¸è¿è¡æ
¢çåå ï¼ï¼ãæ¯æ¬¡æ¾å¾é½è¦éæ°åæå¾çï¼è¿ä¸ªæ¾å¾æ¹æ¡è¿è¡æ¾å¾åè½ç次æ°å¤ªå¤ï¼å¯¼è´åæå¾çç¨äºè¿å¤çæ¶é´ï¼ï¼ãç±äºè¿æ¯èæ¬ï¼ä¸æ¯exeæ件ï¼æ¯æ§è¡ä¸æ¡å½ä»¤é½éè¦å
读ä¸æ¡è¯å¥ï¼ç¿»è¯ååæ§è¡ï¼è¿ä¸ªæ¹æ¡åçèæ¬è½ç¶ä¸é¿ï¼ä½è¿è¡çæ¶åè¦æ§è¡å¾ªç¯å¾å¤æ¬¡æè½æ«éæ´ä¸ªæ¾å¾èå´ã
ããæ以ï¼æåéç¨çæ¯ç¬¬äºæ¹æ¡ï¼è¯¦ç»çæ¶åæ¹æ³æ¯ï¼ç¨åºæ¾å°ä¸ä¸ªå¾åï¼æ¾å¾èå´çä¸è¾¹çå°±éæ°è®¾ä¸ºè¯¥å¾åæ ç纵åæ å 1ï¼ç¶å继ç»æ¾å¾ãåèèæ¬å¦ä¸ï¼
VBS y0=0
VBS Dim x(),y()
//æ¾å°çå¾ç横åæ å纵åæ åå«åå¨x()æ°ç»åy()æ°ç»ä¸
VBS i=0
//æ¾å°çå¾çæ°éåå¨åéiä¸
VBS pd=1
VBSCall FindPic(0,y0,1024,768,"å.bmp",1,xz,yz)
If xz<0 or yz<0
MessageBox "没æ¾å°å¾å½¢"
EndScript
EndIf
//7å°11è¡å¯ä»¥ä¸è¦
While pd=1
VBSCall FindPic(0,y0,1024,768,"å.bmp",1,xz,yz)
If xz>=0 and yz>=0
VBS ReDim Preserve x(i)
VBS ReDim Preserve y(i)
VBS x(i)=xz
VBS y(i)=yz
VBS i=i+1
VBS y0=yz+1
Else
VBS pd=0
EndIf
EndWhile
//ä¸é¢çå½ä»¤æ¯ç¨äºæ¾ç¤ºæ¾å¾ç»æ
VBSCall RunApp("notepad.exe")
Delay 1000
VBS n=0
While n<i
SayString x(n)
SayString ","
SayString y(n)
SayString "|"
VBS n=n+1
EndWhile
SayString i
ããæ¤èæ¬æ¯æ¾å¾èå´æ¯0,0,1024,768æ¶çæ¾å¾èæ¬ï¼æ¾å¾èå´ä¸åæ¶è¦æ¹å¨é¨ååæ°ã
ããæ¤èæ¬çä¼ç¹æ¯æ¾å¾é度快ï¼ä½ææ»åºï¼è¡¨ç°å¨æ¾ä¸å°åå·²æ¾å°çå¾å³ä¾§å®å
¨å¹¶æçå¾ãç±äºè¯¥ç¨åºçæ»åºèå´å¾å°ï¼æ以对ææ¾çå¾å¨å±å¹å
并æçå¯è½æ§å¾å°æ¶ï¼å¯ä»¥éç¨ã
ããå¦æå¦å¤å äºæ«æ»åºé¨åçå½ä»¤ï¼å°±å¯ä»¥æ¶é¤ä¸é¢èæ¬çæ»åºï¼åèèæ¬å¦ä¸ï¼
VBS y0=0
VBS Dim x(),y()
//æ¾å°çå¾ç横åæ å纵åæ åå«åå¨x()æ°ç»åy()æ°ç»ä¸
VBS i=0
//æ¾å°çå¾çæ°éåå¨åéiä¸
VBS pd=1
VBS Dim pd1
VBS Dim x01
VBSCall FindPic(0,y0,1024,768,"å.bmp",1,xz,yz)
If xz<0 or yz<0
MessageBox "没æ¾å°å¾å½¢"
EndScript
EndIf
//9å°13è¡å¯ä»¥ä¸è¦
While pd=1
VBSCall FindPic(0,y0,1024,768,"å.bmp",1,xz,yz)
If xz>=0 and yz>=0
VBS ReDim Preserve x(i)
VBS ReDim Preserve y(i)
VBS x(i)=xz
VBS y(i)=yz
VBS i=i+1
VBS y0=yz+1
VBS x01=xz+1
VBS pd1=1
While pd1=1
VBSCall FindPic(x01,yz,1024,yz+12,"å.bmp",1,xz1,yz1)
//12æ¯å¾ç"å.bmp"çé«åº¦
If xz1>=0 and yz1>=0
VBS ReDim Preserve x(i)
VBS ReDim Preserve y(i)
VBS x(i)=xz1
VBS y(i)=yz1
VBS i=i+1
VBS x01=xz1+1
Else
VBS pd1=0
EndIf
EndWhile
Else
VBS pd=0
EndIf
EndWhile
//ä¸é¢çå½ä»¤æ¯ç¨äºæ¾ç¤ºæ¾å¾ç»æ
VBSCall RunApp("notepad.exe")
Delay 1000
VBS n=0
While n<i
SayString x(n)
SayString ","
SayString y(n)
SayString "|"
VBS n=n+1
EndWhile
SayString i
ããæ¤èæ¬å®å
¨æ¶é¤äºæ»åºï¼ä½æ¾å¾é度æ¯åé¢çèæ¬æ
¢ç¹ã
ããç¨åæ ·çæ¹æ³ä¹å¯ä»¥è§£å³æ¾è²çé®é¢ã
ãã转贴æ¬äººçæç« æèæ¬è¯·æ³¨æåä½è
ååºå¤ã
温馨提示:内容为网友见解,仅供参考