作者GodIsland (搞不定吗用C4就对了)
看板EzHotKey
标题[-AI-] IE.au3 异常排除
时间Tue Oct 8 08:55:39 2019
我的情形是AutoIt IE.au3在Win10异常
#include <IE.au3>
$oIE = _IECreate($site)
$oForms = _IEFormGetCollection($oIE)
MsgBox(0, "表单资讯", "这个页面上共有" & @extended & "个表单")
For $oForm In $oForms
MsgBox(0, "表单名称", $oForm.name)
$oQuerys = _IEFormElementGetCollection($oForm)
For $oQuery In $oQuerys
MsgBox(0, "表单控制项资讯", "名称:" & $oQuery.name & " 类型:" &
$oQuery.type)
Next
Next
会出现
--> IE.au3 T3.0-2 Error from function _IELoadWait,
$_IESTATUS_ClientDisconnected (-2147023174, Browser has been deleted prior to
operation.)
参考
https://www.autoitscript.com/forum/topic/169035-browser-has-been
-deleted-_iecreate-failure/
将
$oIE = _IECreate("
http://89.0.0.218")
改为
$oIE = ObjCreate("{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}")
_IENavigate($oIE, "89.0.0.218")
$oIE.visible = 1
即可正常运作。
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 60.250.204.229 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/EzHotKey/M.1570496142.A.788.html