Jump to content
Sign in to follow this  
BlindWanderer

IE embedding troubles

Recommended Posts

BlindWanderer

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
Edited by BlindWanderer

Share this post


Link to post
Share on other sites
Simucal

No errors on my end.


AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×