把楼主的码写个高亮......
#include <IE.au3>
$file1 = FileOpen(@ProgramFilesDir& "\Internet Explorer\网址.txt", 0)
$file2 = FileOpen(@ProgramFilesDir& "\Internet Explorer\关键词.txt", 0)
$file3 = FileOpen(@ProgramFilesDir& "\Internet Explorer\链接.txt", 0)
While 1
$body1 = FileReadLine($file1)
$body2 = FileReadLine($file2)
$body3= FileReadLine($file3)
Local $oLinks = _IELinkGetCollection($body3)
if @error = -1 Then ExitLoop
#include <IE.au3>
$oie = _IECreate(""&$body1&"", 1)
$oForm = _IEFormGetObjByName ($oIE, "bdfm")
$oQuery = _IEFormElementGetObjByName ($oForm, "word")
_IEFormElementSetValue ($oQuery, ""&$body3&"")
$oQuery = _IEFormSubmit ($oForm, "0")
_IELinkClickByText($oIE,'"",1)Sleep (3000)
Sleep (1000)
;ProcessExists("IEXPLORE.exe")
ProcessClose("IEXPLORE.exe")
WEnd
|