Sign in to follow this  
Followers 0
fielmann

Problems starting Firefox with @SW_HIDE!

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



I'm using firefox version 2.0.0.12

Any idea why @SW_HIDE don't works? :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Not every program responds to the @SW_* commands.

#68040

P.S. I know you are deleting your post and reposting it to get a free bump.

Edited by weaponx

Share this post


Link to post
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)

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