Sign in to follow this  
Followers 0
trinitrotoluen

Where does DWebBrowserEvents2 come from ?

5 posts in this topic

#1 ·  Posted (edited)

Hi,

I'm new at COM.

I see this line in the example of Objevent :

$SinkObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents2") ; Assign events to UDFs starting with IEEvent_
I wonder that where DWebBrowserEvents2 comes from. (Where is it when using OLE/COM Viewer ?)

Thanks !

Edited by trinitrotoluen

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi

I believe that DWebBrowserEvents2 interface enables an application to receive event notifications from a WebBrowser control related to InternetExplorer.Application.1 from the ieframe.dll component PROGID Shell.Explorer.2

Available Event trickers...

BeforeNavigate

BeforeNavigate2

ClientToHostWindow

CommandStateChange

DocumentComplete

DownloadBegin

DownloadComplete

FileDownload

NavigateComplete

NavigateComplete2

NavigateError

NewProcess

NewWindow

NewWindow2

NewWindow3

OnFullScreen

OnMenuBar

OnQuit

OnStatusBar

OnTheaterMode

OnToolBar

OnVisible

PrintTemplateInstantiation

PrintTemplateTeardown

PrivacyImpactedStateChange

ProgressChange

PropertyChange

RedirectXDomainBlocked

SetPhishingFilterStatus

SetSecureLockIcon

StatusTextChange

ThirdPartyUrlBlocked

TitleChange

UpdatePageStatus

WindowActivate

WindowClosing

WindowMove

WindowResize

WindowSetHeight

WindowSetLeft

WindowSetResizable

WindowSetTop

WindowSetWidth

WindowStateChanged

Kjactive

Edited by kjactive

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

yes, I wanna know that which group it's related to ?

ps : actually, I can't find it with OLE/COM viewer tool

Edited by trinitrotoluen

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

yes, I wanna know that which group it's related to ?

ps : actually, I can't find it with OLE/COM viewer tool

Events is offen automatically activated and always available 'so to speak' - ObjEvent makes interfase with that part of a Com object, some of the larger objects has more than one events system running around, like the MSWebDVD component has a lot of event handle, some has to be activated like the 'Tuner' component and other automatically opened like the navigation events - there are no rules actually but my experiens is that if the events interface is not mention sepperately in the topics as a component, it's automatically opened and always available...

The WebBrowser control component contain two browsers and two event interfaces both available to the same browser

insert this code in a script

$ObjIEEvent = ObjEvent($ObjIE,"IEEvent_","DWebBrowserEvents")
$ObjIEEvent2 = ObjEvent($ObjIE,"IEEvent2_","DWebBrowserEvents2")

Func IEEvent_BeforeNavigate()
ConsoleWrite('IEEvent_BeforeNavigate' & @CRLF)
EndFunc

Func IEEvent2_BeforeNavigate2()
ConsoleWrite('IEEvent2_BeforeNavigate2' & @CRLF)
EndFunc

http://msdn.microsoft.com/en-us/library/aa768283(VS.85).aspx

kjactive Posted Image

Edited by kjactive

Share this post


Link to post
Share on other sites

Hi kjactive

Thank you for your reply but seem to be your script run nothing.

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  
Followers 0