Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening URL in default browser on specific window
Message
From
30/12/2016 16:23:47
 
 
To
30/12/2016 15:57:58
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01646212
Message ID:
01646226
Views:
52
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform