Rawox Posted October 25, 2008 Share Posted October 25, 2008 Does anyone knows why this code isn't working. It does not hide and show again Run("C:\Program Files\Mozilla Firefox\firefox.exe") Sleep ( 2000 ) WinSetState("Firefox", "", @SW_HIDE) Sleep(3000) WinSetState("Firefox", "", @SW_SHOW) Link to comment Share on other sites More sharing options...
DexterMorgan Posted October 25, 2008 Share Posted October 25, 2008 Does anyone knows why this code isn't working. It does not hide and show again 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 Link to comment Share on other sites More sharing options...
Rawox Posted October 25, 2008 Author Share Posted October 25, 2008 Can't it be contained in the name.. because it always opens my previous tabs... or is there any other way to do that? Link to comment Share on other sites More sharing options...
DexterMorgan Posted October 25, 2008 Share Posted October 25, 2008 (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 October 25, 2008 by DexterMorgan code 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