redapple2008 发表于 2025-3-3 16:36:24

IE报错怎么办

IE报错怎么办:
#include <IE.au3>
$oie = _IECreate("www.autoitscript.com", 0,0,1,0)
_IELoadWait($oie)
$stext = _IEBodyReadText($oie)
ConsoleWrite($stext)

--> IE.au3 V3.1-0 Error from function _IECreate,(Browser Object Creation Failed)
--> IE.au3 V3.1-0 Error from function _IELoadWait, $_IESTATUS_InvalidDataType
--> IE.au3 V3.1-0 Error from function _IEBodyReadText, $_IESTATUS_InvalidDataType

yohoboy 发表于 2025-3-3 18:45:09

win7-64bit, autoit_v3.3.14.2 版本運行正常,可否提供您運行的作業系統?au3 版本,或是可能運行的系統把ie給移除了

redapple2008 发表于 2025-3-3 22:10:50

yohoboy 发表于 2025-3-3 18:45
win7-64bit, autoit_v3.3.14.2 版本運行正常,可否提供您運行的作業系統?au3 版本,或是可能運行的系統把ie ...

win10或者win11都出错

yohoboy 发表于 2025-3-4 00:13:55

redapple2008 发表于 2025-3-3 22:10
win10或者win11都出错

那可能是因為win10起使用edge做預設的瀏覽器把ie給禁用了, 我在官網看到類似的你可以參考看看
https://www.autoitscript.com/forum/topic/203689-ie-udf-works-with-edge/
https://www.autoitscript.com/wiki/WebDriver

wyl0205 发表于 2025-3-4 10:10:14

redapple2008 发表于 2025-3-3 22:10
win10或者win11都出错

Win10,Win11已经删除IE了,要想用就只能用edge的IE模式,或者安装ltsc版的的win10

msold5 发表于 2025-3-4 16:18:43

除了楼上说的,被360之流拦截也会出错...现在的IE已经很多问题了
页: [1]
查看完整版本: IE报错怎么办