Sign in to follow this  
Followers 0
Devol

How to start FF hidden?

15 posts in this topic

Hello,

is there a special reason for firefox not starting hidden using

ShellExecute("firefox.exe", "", @ScriptDir, "",@SW_HIDE)
??

Thank you in advance.

Greetz

Devol

Share this post


Link to post
Share on other sites



I read a few threads here and elsewhere that doesn't look too promising. However, I used some trickery to kind of make it work:

Run(@ProgramFilesDir & "\mozilla firefox\firefox.exe")
Do
     Sleep(20)
Until WinExists("Mozilla Firefox")
WinSetTrans("Mozilla Firefox", "", 0)
Sleep(2000)
WinSetState ("[Last]", "", @SW_HIDE)

MsgBox(0, "", "Firefox is now hidden and transparent. Click OK to undo those attributes")

WinSetState ("[Last]", "", @SW_SHOW)
WinSetTrans("[Last]", "", 255)

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

Hi sleepydvdr,

the FF.au3 is already doing it like this.

But in my opinion ,it`s just a bad workaround.

Should I report this in the Bugtracker?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

The coder of the FF.au3 already knows this problem.

But it`s not a problem with the FF.au3 , it`s a problem of an executable not starting via

ShellExecute("firefox.exe", "", @ScriptDir, "",@SW_HIDE)
which is built in AutoIt.

It worked in earlier versions of AutoIt...

Edited by Devol

Share this post


Link to post
Share on other sites

Hi Devol,

Is it possible the that Firefox has started hidden, but is trying to update itself, or an add-on, or is showing (hidden) the add-ins update page and waiting for you to close that? Does task manager list Firefox?

Richard.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Hi Richard,

nope, i`ve the latest FF installed and my add-ons are up to date too.

It`s a general problem with the functions "Run/ShellExecute", you can try to start FF as described above, it`s not possible.

Greetz

Devol

Edited by Devol

Share this post


Link to post
Share on other sites

Devol,

Yes, Firefox starts visible, as you say. I tried it with WinWord, and it started hidden (banner visible, then hidden). So assuming AutoIt is just passing the names through, then it's Firefox that's not behaving?

Richard

Share this post


Link to post
Share on other sites

Devol,

Yes, Firefox starts visible, as you say. I tried it with WinWord, and it started hidden (banner visible, then hidden). So assuming AutoIt is just passing the names through, then it's Firefox that's not behaving?

Richard

It's definitely Firefox. They changed a bunch of stuff with version 3.6, then again in 4.0. Personally, I think they are doing these things on purpose. If it's harder to control a program, then it's harder to do malicious things to the program.


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

So it`s not a bug , but it`s not working anyway. :)

Should I report this in the Bugtracker?

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

So it`s not a bug , but it`s not working anyway. :)

Should I report this in the Bugtracker?

So you have tried multiple versions of AutoIt on THE SAME Firefox and the old versions work but not the newest? That points to something changing in AutoIt, go ahead and make a ticket for a devs opinion. Edited by AdmiralManHairAlkex

Share this post


Link to post
Share on other sites

So it`s not a bug , but it`s not working anyway. :)

Should I report this in the Bugtracker?

Go ahead, make yourself look even more stupid.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

You can also use this addon ( works well with Firefox 5.0 ) for start ( not hidden but ) minimized Posted Image

minimize-on-start-and-close

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Go ahead, make yourself look even more stupid.

What`s wrong with you? I used this "feature" and now it`s not working anymore...

However , I`ll report this. (that`s what the bugtracker is made for...)

Thanks @ all :)

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

not realy, its to report parts that don't work, as far i can see it still works on other applications, if its only FF problem, than its FF bug and you shud report it on their forum. If its not working anymore logical question is did you update autoit or FF? the one you update is the one you should report the bug to, and from the text above i can see that you updated FF...

Edit: 4 of them are telling him that its FF problem and he still feel the need to report to autoit bug tracker :);)

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

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