How to find the handle of an object (a browser's tab) that was opened in system browser?
1 view (last 30 days)
Show older comments
1. Certain web pages don't open properly with mathworks internal browser so I'm using Firefox instead.
But, once I use it, I can't identify the browser's handle and as such I loss capabilities (like refresh, select a specific tab) to manipulate the browser from Matlab.
2. Web function returns properly the handle of an object (web page) that was opened in mathworks internal browser:
[~,h] = web('http://www.google.com')
h =
com.mathworks.mde.webbrowser.WebBrowser[Web Browser,10,10,600x600,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
but once I use a 3rd party browser (i.e. Firefox, Chrome), I don't get the handle output.
[~,h] = web('http://www.google.com','-browser')
h =
[]
3. Is there a way to find the handle of an object (a browser's tab) that was opened in system browser?
0 Comments
Answers (1)
See Also
Categories
Find more on Startup and Shutdown 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!