lordsocke Posted November 27, 2015 Share Posted November 27, 2015 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) Link to comment Share on other sites More sharing options...
MilesAhead Posted November 27, 2015 Share Posted November 27, 2015 (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 November 27, 2015 by MilesAhead My Freeware Page Link to comment Share on other sites More sharing options...
Danp2 Posted November 27, 2015 Share Posted November 27, 2015 Take a look at the _FFStart function in the FF.au3 UDF. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now