Jump to content

Unable to hide chrome browser


Recommended Posts

Hello all,

I've been trying to figure out how to launch Google Chrome in the background (hidden) but it doesn't seem possible. I've tried the following methods:

ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "", "", "", @SW_HIDE)

Also I've tried:

ShellExecute(@ComSpec, "/c start chrome.exe","","",@SW_HIDE)

Lastly I tried:

RunWait('"'&@ProgramFilesDir&'\Google\Chrome\Application\chrome.exe" --silent-launch',@ScriptDir)

 

But all of them launch my chrome browser without hiding it. Does anyone know a workaround for this or if AutoIT just can't Chrome? 

Bonus points if you know how to make it launch chrome hidden and make it go to https://www.autoitscript.com

 

Thank you,

Brian

Link to comment
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
 Share

×
×
  • Create New...