How to hide web browser while using web function

4 vues (au cours des 30 derniers jours)
Zheng
Zheng le 6 Fév 2013
For instancce, I want to open the URL 'GOOGLE.COM' by using web function ---
[stat,h]=web('Google.COM');
can I hide web browser?

Réponses (3)

Jan
Jan le 6 Fév 2013
Modifié(e) : Jan le 6 Fév 2013
You want to open a web browser and hide it? What about using urlread instead?
[EDITED]
[stat,h] = web('www.google.com');
h.setVisible(0)
This the the window be visible, but the contents is invisible.
To hide the window:
h.getParent.getParent.getParent.getParent.getParent.getParent.getParent.setVisible(0)
Let's ask Yair, if there is a more direct solution, which looks less like I'm stammering. Bur at least, it works.
  1 commentaire
Kye Taylor
Kye Taylor le 6 Fév 2013
Haven't you tried surfing the web in MATLAB, only to have the boss man come in?

Connectez-vous pour commenter.


Zheng
Zheng le 6 Fév 2013
does it work? I need to use web function to access the webpage to active online server, but I don't want the application users to see it.

Sean de Wolski
Sean de Wolski le 6 Fév 2013
[~,h] = web('whatever')
methods(h)
There are some methods in there that might work, but these aren't documented and aren't guaranteed to work. Some relevant ones I saw: hide() and setVisible().
@Kye, I guess you could have "Hide Stuff the Boss Can't See" quick access toolbar button :)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by