I've run the below script, and it gets all the way to the end, and throws that last @error with 80004002, this code *should* work, i'm running windows xp pro. It's a relatively clean install with all the latest updates. What do i have to do to windows to get this to work (i dirived this code from another script i wrote that worked fine in win2k pro but now failes for this reason in xp pro)?
$GUIMain=GUICreate ( "Event Test", 600,500 )
GUISetState()
$c = "Shell.Explorer.2"
$oIE=ObjCreate($c)
if @error then
Msgbox(0,"AutoIt COM", _
"Object: Can't load '"&$c&"'. Error code: " & hex(@error,8))
exit
endif
$IEWnd=GUICtrlCreateObj ($oIE, 10,20, 580, 90)
if @error then
Msgbox(0,"AutoIt COM", _
"Object: Can't merge '"&$c&"'. Error code: " & hex(@error,8))
exit
endif
With $oIE
.Visible=1
.Silent=1 ; Don't show IE's dialog boxes
EndWith
$EventObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents2")
if @error then
Msgbox(0,"AutoIt COM Test", _
"ObjEvent: Can't use event interface 'DWebBrowserEvents2'. Error code: " & hex(@error,8))
exit
endif