The information in this article applies to:
SUMMARY
In some instances you may want to control Internet Explorer from another
application, typically to navigate to a specific URL. One way you can do
this is through the InternetExplorer OLE Automation object that Internet
Explorer exposes. However, this method always launches a new instance of
Internet Explorer, which may not necessarily be the desired behavior.
MORE INFORMATION
Using the Win32 SDK's DDEML\CLIENT sample, one can easily verify that DDE
with Internet Explorer is fairly straightforward, as long as the correct
information is specified. To tell Internet Explorer to navigate to a
specific URL, for instance, you specify the following information in your
DDE transaction:
Similarly, to get the current URL of a running instance of Internet
Explorer, for example, you specify the following information:
Note that IE 2.0 and earlier used "mosaic" as its application name, instead
of "iexplore" as specified above.
For more information about DDE support in Internet Explorer, please see the following article in the Microsoft Knowledge Base: Q160957 Dynamic Data Exchange Support in Microsoft Internet ExplorerIf launching a new Internet Explorer window is desired, one workaround would be to use the InternetExplorer automation object, as mentioned in the SUMMARY section above. For example, you can launch Internet Explorer using Visual Basic and have it open the Microsoft Web page at http://www.microsoft.com by doing the following:
For Internet Explorer 3.x, more information on the InternetExplorer automation object can be found under the "Web Browsing Obj" section on the ActiveX SDK page at http://www.microsoft.com/intdev/sdk, or by searching on "InternetExplorer" off of the ActiveX SDK online documentation. For Internet Explorer 4.0, refer to the "Reusing the WebBrowser Control" section under the "Internet Tools and Technologies" book of the Internet Client SDK documentation, or by searching on "InternetExplorer" off of the Internet Client SDK docs index. Additional query words:
Keywords : kbIE300 kbIE301 kbIE302 AXSDKIEAutomation GetActiveObject |
Last Reviewed: May 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |