Jump to content

Recommended Posts

Posted

Does anyone knows why this code isn't working.

It does not hide and show again :P

Run("C:\Program Files\Mozilla Firefox\firefox.exe")
Sleep ( 2000 )
WinSetState("Firefox", "", @SW_HIDE)
Sleep(3000)
WinSetState("Firefox", "", @SW_SHOW)
Posted

Does anyone knows why this code isn't working.

It does not hide and show again :P

Run("C:\Program Files\Mozilla Firefox\firefox.exe")
Sleep ( 2000 )
WinSetState("Firefox", "", @SW_HIDE)
Sleep(3000)
WinSetState("Firefox", "", @SW_SHOW)
Well when i open Firefox it says Mozilla Firefox but it depends on your Home page, I.E if this site is the homepage you would use

WinSetState("Autoit Forums", "", @SW_HIDE)

code
Posted

Can't it be contained in the name.. because it always opens my previous tabs...

or is there any other way to do that?

Posted (edited)

Can't it be contained in the name.. because it always opens my previous tabs...

or is there any other way to do that?

nope it doesnt work like that for me unless you add

Opt("WinTitleMatchMode", 2)

Edit: Example

Opt("WinTitleMatchMode", 2) 

WinSetState("Mozilla Firefox", "", @SW_HIDE)
Sleep(3000)
WinSetState("Mozilla Firefox", "", @SW_SHOW)
Edited by DexterMorgan
code

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
×
×
  • Create New...