JohnQSmith Posted April 2, 2012 Share Posted April 2, 2012 But why doesn't work ?? How can I make it to minimize if its maximized ? Dunno. How about this? Run(@ProgramFilesDir & "Mozilla Firefoxfirefox.exe", "", @SW_MINIMIZE) WinWaitActive("Google - Mozilla Firefox", "", 10000) WinSetState("Google - Mozilla Firefox", "", @SW_MINIMIZE) DeathRow 1 Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
DeathRow Posted April 2, 2012 Author Share Posted April 2, 2012 (edited) Dunno. How about this? Run(@ProgramFilesDir & "Mozilla Firefoxfirefox.exe", "", @SW_MINIMIZE) WinWaitActive("Google - Mozilla Firefox", "", 10000) WinSetState("Google - Mozilla Firefox", "", @SW_MINIMIZE) Yes this definately works, great job! Even if its not instantly ,it works pretty fast even maximized! BUT THIS DEFINATELY DOESN'T WORK( if the window its maximized ) : The WinMove command! Edited April 2, 2012 by DeathRow Link to comment Share on other sites More sharing options...
Bowmore Posted April 2, 2012 Share Posted April 2, 2012 If you want Firefox to behave as you want then you need to persuade the Firefox developers not to restore it's state on startup. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
JohnQSmith Posted April 2, 2012 Share Posted April 2, 2012 If you don't make mistakes, you're doing it wrong.If you don;t correct those mistakes, you're doing it really wrong.If you can't accept that you're mistaken, you're not doing it at all.The "don;t" in the second line of your signature should be "don't". Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now