Jump to content

Problems starting Firefox with @SW_HIDE!


Recommended Posts

Hello autoit-friends!

;~~~~~~~~~~~~~~

$sProfile = ' -P "default"'

$sHKLM = "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox"

$sVersion = RegRead($sHKLM, "CurrentVersion")

$sFFExe = RegRead($sHKLM & "\" & $sVersion & "\Main", "PathToExe")

Run('"' & $sFFExe & '" -repl' & $sProfile, "", @SW_HIDE)

;~~~~~~~~~~~~~~

When I start the script the firefox window appears!

But I wan't to start with @SW_HIDE !!!

Seems that @SW_HIDE will be ignored?

Any ideas?

Link to comment
Share on other sites

Opt("WinTitleMatchMode", 2)
$sProfile = ' -P "default"'
$sHKLM = "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox"
$sVersion = RegRead($sHKLM, "CurrentVersion")
$sFFExe = RegRead($sHKLM & "\" & $sVersion & "\Main", "PathToExe")
Run('"' & $sFFExe & '" -repl' & $sProfile)
Do
     Sleep(20)
Until WinExists("Mozilla Firefox")
WinSetState("Mozilla Firefox", "", @SW_HIDE)

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...