Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open Browser screen minimized
Message
 
To
27/02/2010 02:53:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01451394
Message ID:
01451399
Views:
41
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform