我用了这种办法,能不恩那个直接提取?$i = 0
For $oLink In $oLinks
$i = $i + 1
FileWriteLine("fasdf.txt", $i & "-" & $oLink.href)
If $i = 75 Then
$s = $oLink.href
EndIf
;~ MsgBox(0,"链接"&$i,$oLink.href ,1)
Next
MsgBox(0, "", $s)
全文#include <IE.au3>
#include <Constants.au3>
#include <Date.au3>
$oIE = _IECreate("http://www.uname.cn/dic/zidian.asp")
$a = _IEGetObjByName($oIE, "gb")
_IEFormElementSetValue($a, "国")
$oSubmit = _IEGetObjByName($oIE, "gb")
$b = _IEGetObjByName($oIE, "Submit")
_IEAction($b, "click")
_IELoadWait($oIE)
$oLinks = _IELinkGetCollection($oIE)
$i = 0
For $oLink In $oLinks
$i = $i + 1
FileWriteLine("fasdf.txt", $i & "-" & $oLink.href)
If $i = 75 Then
$s = $oLink.href
EndIf
;~ MsgBox(0,"链接"&$i,$oLink.href ,1)
Next
MsgBox(0, "", $s)
|