本帖最后由 lin6051 于 2014-11-14 10:31 编辑
回复 1# kxing
现在只好用 run 或者obj (_IECreateEmbedded和GUICtrlCreateObj)
我一直这样用
不过要处理这个
http://www.autoitx.com/thread-45586-1-1.html
要不就这样:
#include <IE.au3>
dim $ie=@ProgramFilesDir&"\Internet Explorer\iexplore.exe"
Run($ie&' about:blank')
do
sleep(100)
until WinExists("空白页 -","") or WinExists("about:blank -","")
$hdl1=WinGetHandle("空白页 -","")
if not IsHWnd($hdl1) then $hdl1=WinGetHandle("about:blank -","")
$oIE = _IEAttach($hdl1,"hwnd")
_IENavigate ($oIE,'http://www.baidu.com')
|