MATLAB code to read status update message appearing in the web page (Internet Explorer in MATLAB GUI)

4 次查看(过去 30 天)
Hello,
In a GUI, I have an HTML viewer in the MATLAB figure using the following command actxcontrol('Shell.Explorer.2',[5, 150, 5000, 575], gcf); I call specific web pages based on my requirements and that part is working very fine.
The user interaction with this web page produces status update message on the web page which I would like to read.How do we read only those status update messages that appears on the screen? I know the x, y position of the screen where the message appears.
Please help. Thank you
Madhu Kodappully
  1 个评论
Madhu Kodappully
Madhu Kodappully 2015-8-19
Its is a game web page that I display on the MATLAB GUI. Based on the mouse click performed on the page, the web page provides a status update message as "Completed" or "Not completed" If the message is "completed" (it happens only if the click is accurately done) I would like to show the next web page, otherwise wait for the right mouse click until 60 seconds elapse and show the next web page.

请先登录,再进行评论。

采纳的回答

Madhu Kodappully
Madhu Kodappully 2015-8-20
Use event handlers to the actxcontrol object. rewrite the code statement in the MATLAB command window as
h = actxcontrol('Shell.Explorer.2',[5, 150, 5000, 575], gcf);
then type h.events to know about the events associated with this object
Then register appropriate event and write a function for that event.
More details are available in the following link http://in.mathworks.com/help/matlab/matlab_external/using-events.html
Please reply if anybody has tried writing eventhandle function for the Shell.Explorer.2

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by