COM control of Internet Explorer Windows

2 ビュー (過去 30 日間)
Mark
Mark 2011 年 8 月 18 日
回答済み: Image Analyst 2014 年 4 月 3 日
Hi,
I'm using the COM interface to control an internet explorer object that i've embedded into a matlab figure.
ieobject=actxcontrol('Shell.Explorer.2')
I can take total control of this object to Navigate around the web, click buttons, and inspect the DOM from various websites, parsing data into matlab. All is well.
However sometimes I want to access a webpage that generated by a javascript button which launches a new internet explorer window. Its not straight forward to get the weblink referenced from the button, I need to click on the button so that the webpage can run a whole load of javascript. So, I first find the ID to the button
oButton=ieobject.document.getElementById('Button');
Then click on the button
oButton.Click();
This launches a new internet explorer window, but I have no reference to it. Is there a way of finding the new ieobject reference so I can take control of the new window ? I suspect its some .NET wizardary, but it doesn't appear straight forward. Any help appreciated.

回答 (1 件)

Image Analyst
Image Analyst 2014 年 4 月 3 日

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by