How to find the handle of an object (a browser's tab) that was opened in system browser?

1 次查看(过去 30 天)
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?

回答(1 个)

hamid bin
hamid bin 2021-1-18
No one wants to answer this serious problem!?

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by