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

4 views (last 30 days)
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 Comment
Madhu Kodappully
Madhu Kodappully on 19 Aug 2015
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.

Sign in to comment.

Accepted Answer

Madhu Kodappully
Madhu Kodappully on 20 Aug 2015
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

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!