Jump to content

! RunWait command PROBLEM !


Recommended Posts

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)

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

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 by DeathRow
Link to comment
Share on other sites

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

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

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...