Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Browser screen minimized
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01451394
Message ID:
01451399
Vues:
42
>Is there any way to get this page to open minimized?
> Using the code below, the page opens 'behind' the active window but not minimized.
>
>thanks
>k
>
>#DEFINE SW_SHOWMINIMIZED     6
>lcUrl = "https://google.ca"
>oShell = Createobject("wscript.shell")
>oShell.Run(lcUrl)
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
>	INTEGER hwnd, STRING lpVerb, STRING lpFile, ;
>	STRING lpParameters, STRING lpDirectory, LONG nShowCmd
>ShellExecute(0, "Open", lcUrl, "", "", SW_SHOWMINIMIZED)
>
#DEFINE SW_MINIMIZE         2
lcUrl = "https://google.ca"
oShell = Createobject("wscript.shell")
oShell.Run(lcUrl)
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, STRING lpVerb, STRING lpFile, ;
    STRING lpParameters, STRING lpDirectory, LONG nShowCmd
ShellExecute(0, "Open", lcUrl, "", "", SW_MINIMIZE)
But from MSDN:
nShowCmd
[in] The flags that specify how an application is to be displayed when it is opened. If lpFile specifies a document file, the flag is simply passed to the associated application. It is up to the application to decide how to handle it.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform