solo_k 发表于 2011-6-1 17:22:28

_IEQuit()为何不能关闭以下对象?

#include <IE.au3>
$oIE=_IECreate("http://www.1ting.com/rand.php");http://www.1ting.com/rand.php
$oDoc = _IEDocGetObj ($oIE)

Local $oLinks = _IELinkGetCollection ( $oIE )
For $oLink In $oLinks
        ;MsgBox(0,$oDoc.title,$oLink.href,1 )
Next
_IEQuit($oIE)


代码如上,去掉注释的话,可以打印MsgBox(0,$oDoc.title,$oLink.href,1 )的信息
但就是最后无法关闭,甚至手动关闭都不行
但换一个URL就可以了
请问这是autoit的问题还是网站的问题,_IEQuit是不是不能关闭php的网站?
请问有高手知道解决的办法吗?

easefull 发表于 2011-6-1 20:17:37

IEQuit只是关闭Internet Explorer_Server控件.和Internet Explorer_Server控件打开的是什么页面无关.

以下代码测试无异常
#include <IE.au3>
_IELoadWaitTimeout(10*1000)
Local $oIE    = _IECreate("http://www.1ting.com/rand.php")
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
        ToolTip($oIE.document.title &@CRLF& $oLink.href, 0, 0)
        Sleep(200)
Next
_IEQuit($oIE)
页: [1]
查看完整版本: _IEQuit()为何不能关闭以下对象?