找回密码
 加入
搜索
查看: 2818|回复: 1

[IE类操作] _IEQuit()为何不能关闭以下对象?

[复制链接]
发表于 2011-6-1 17:22:28 | 显示全部楼层 |阅读模式
#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的网站?
请问有高手知道解决的办法吗?
发表于 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)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 05:39 , Processed in 0.077015 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表