trinitrotoluen Posted October 2, 2009 Share Posted October 2, 2009 (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 October 2, 2009 by trinitrotoluen Link to comment Share on other sites More sharing options...
kjactive Posted October 2, 2009 Share Posted October 2, 2009 (edited) HiI 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.2Available Event trickers...BeforeNavigateBeforeNavigate2ClientToHostWindowCommandStateChangeDocumentCompleteDownloadBeginDownloadCompleteFileDownloadNavigateCompleteNavigateComplete2NavigateErrorNewProcessNewWindowNewWindow2NewWindow3OnFullScreenOnMenuBarOnQuitOnStatusBarOnTheaterModeOnToolBarOnVisiblePrintTemplateInstantiationPrintTemplateTeardownPrivacyImpactedStateChangeProgressChangePropertyChangeRedirectXDomainBlockedSetPhishingFilterStatusSetSecureLockIconStatusTextChangeThirdPartyUrlBlockedTitleChangeUpdatePageStatusWindowActivateWindowClosingWindowMoveWindowResizeWindowSetHeightWindowSetLeftWindowSetResizableWindowSetTopWindowSetWidthWindowStateChangedKjactive Edited October 2, 2009 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
trinitrotoluen Posted October 2, 2009 Author Share Posted October 2, 2009 (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 October 2, 2009 by trinitrotoluen Link to comment Share on other sites More sharing options...
kjactive Posted October 3, 2009 Share Posted October 3, 2009 (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 Edited October 3, 2009 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
trinitrotoluen Posted October 3, 2009 Author Share Posted October 3, 2009 Hi kjactive Thank you for your reply but seem to be your script run nothing. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now