看板 EzHotKey 關於我們 聯絡資訊
我的情形是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://www.ptt.cc/bbs/EzHotKey/M.1570496142.A.788.html