I tried something like
Run, %A_ProgramFiles%\Mozilla Firefox\firefox.exe www.google.com, Hidden
or
Run, %A_ProgramFiles%\Mozilla Firefox\firefox.exe www.google.com, Hide
same with Chrome
it always pops up the window
I cannot use IE so com is out
Any tips guys?
Launch FireFox or Chrome hidden Topic is solved
Re: Launch FireFox or Chrome hidden Topic is solved
what do u mean by hidden?
you can start a headless chrome instance with Chrome.ahk
you can start a headless chrome instance with Chrome.ahk
Re: Launch FireFox or Chrome hidden
Run
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
Notice the commas compared to yours? (Hint: Hide is not the WorkingDir)
Try:
Run, %A_ProgramFiles%\Mozilla Firefox\firefox.exe http://www.google.com,, Hide
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
Notice the commas compared to yours? (Hint: Hide is not the WorkingDir)
Try:
Run, %A_ProgramFiles%\Mozilla Firefox\firefox.exe http://www.google.com,, Hide
Re: Launch FireFox or Chrome hidden
You are right I made a mistake with the comma.Xtra wrote:Run
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
Notice the commas compared to yours? (Hint: Hide is not the WorkingDir)
Try:
Run, %A_ProgramFiles%\Mozilla Firefox\firefox.exe http://www.google.com,, Hide
Can you test it, even with the right setup, the firefox window pops up
Re: Launch FireFox or Chrome hidden
I don't use firefox you may want to run firefox not as admin see here: How do I not run Firefox as an Administrator or run your script as admin.
Re: Launch FireFox or Chrome hidden
But even if you could launch Firefox hidden this way, there is no good way to work with it after that. The above mentioned Chrome.ahk library by Geekdude would be the better alternative (but using Chrome - which seems ok according to the OP): https://autohotkey.com/boards/viewtopic ... e+geekdude
But I think even this library will use the COM IE interface (via an ActiveX element) to establish the Websocket API connection. There is still the Selenium Webdriver - but that means installation of third-party software.
But I think even this library will use the COM IE interface (via an ActiveX element) to establish the Websocket API connection. There is still the Selenium Webdriver - but that means installation of third-party software.
Who is online
Users browsing this forum: Google [Bot], Xeilous and 193 guests