Sign in to follow this  
Followers 0
lordsocke

open links with firefox hidden

3 posts in this topic

Hi guys I found in the function Shell execute the way to start the browser minimized. But actually it just opens the browser but not hidden or minimized. What am i making wrong here?

ShellExecute("www.google.de", "", "", "open", @SW_MINIMIZE)

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try explicitly opening a browser via its exe and passing the url on the command line.  I think when open via file association only the first param on the command line is passed.  Usually it is something like ".txt" would invoke notepad.exe "%1"

 

Likely the minimize flag is ignored.  One trick I use to get the path of the default browser is to have a dummy html file included with my program.  Then I use FindExecutable() API with the full path to the dummy index.html.  This returns the complete path to FF, IE, whatever.

 

Edited by MilesAhead

Share this post


Link to post
Share on other sites

Take a look at the _FFStart function in the FF.au3 UDF.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0