Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening URL in default browser on specific window
Message
De
30/12/2016 16:23:47
 
 
À
30/12/2016 15:57:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01646212
Message ID:
01646226
Vues:
53
>Hi Antonio
>i am not sure in understand your question.
>Shellexecute API can open an url (with the associated application, here the default browser).
>no need to fetch the browser location,its public ).
>
>
>&&shellexecute
>DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
>                                            STRING cOperation,;
>                                            STRING cFileName,;
>                                            STRING cParameters,;
>                                            STRING cDirectory,;
>                                            INTEGER nShowWindow
>result = ShellExecute(0, "open", "http://msn.com","","",1)  &&navigator by default (what you want ?)
>*result = ShellExecute(0,  "open", "iexplore.exe","http://msn.com","",1)  &&IE
>*result = ShellExecute(0, "open", "firefox.exe","http://msn.com","",1)    &&Firefox
>*result = ShellExecute(0, "open", "chrome.exe","http://msn.com","",1)     &&chrome
>
>
Thanks, Yousfi.

My problem is not to launch the default browser, but to make sure the browser opens the URL in a named window ("_top", "_blank", "myWindow", ...) so that if there is an instance of the application already running, and the named window already exists, the windows location() is updated / replaced.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform