AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Firefox 3.6 issue

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Gauss



Joined: 10 Sep 2009
Posts: 203

PostPosted: Sat Feb 06, 2010 10:51 pm    Post subject: Firefox 3.6 issue Reply with quote

I have an issue with the new 3.6 FF, I used to have one hotkey that:

-If FF not running then run it
-If running and not active then activate it
-If running and active then minimize it

However, they did something in the new version where when activated using the script then it will not react, it will still run and activate but I can't type or do anything with it and I will have to click somewhere on the screen and activate it again manually for it to respond.

This is the old script I always used and always worked till now:

Code:
{
   exist:=WinExist("ahk_class MozillaUIWindowClass")
   DetectHiddenWindows,On
   hidden:=WinExist("ahk_class MozillaUIWindowClass")
   DetectHiddenWindows,Off
   IfWinActive,ahk_class MozillaUIWindowClass
   Winminimize
else If (!exist and hidden){
   WinShow, ahk_id %hidden%
   WinWait, ahk_class MozillaUIWindowClass
   WinActivate
   WinWaitActive
} Else if (exist){
   WinActivate, ahk_class MozillaUIWindowClass
   WinWaitActive
} else {
   Run, C:\Program Files\Mozilla Firefox\firefox.exe
   WinWait, ahk_class MozillaUIWindowClass
   WinActivate
   WinWaitActive
}
}



I made a simple script that will do almost everything and FF will respond to it just fine, the only thing I'm missing is when active then minimize, can someone help me add that missing function to it?

Here it is

Code:
Process,Exist, firefox.exe
If !ErrorLevel
   Run, firefox.exe
Else
IfWinNotActive, ahk_class MozillaUIWindowClass, , WinActivate, ahk_class MozillaUIWindowClass,
Return


Thanks

P.S Some other FF script don't work anymore with the new version 3.6 Confused
Back to top
View user's profile Send private message
flyingDman



Joined: 27 Feb 2009
Posts: 690
Location: Burbank, California

PostPosted: Sun Feb 07, 2010 1:39 am    Post subject: Reply with quote

What about this:
Code:
#\::
Process,Exist, firefox.exe
If !ErrorLevel
Run, "C:\Program Files\Mozilla Firefox\firefox.exe"
else
{
IfWinActive, ahk_class MozillaUIWindowClass
WinMinimize
else
WinActivate, ahk_class MozillaUIWindowClass
}
Return

_________________
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data...
Back to top
View user's profile Send private message
Dinguz



Joined: 30 Oct 2009
Posts: 26

PostPosted: Sun Feb 07, 2010 5:56 am    Post subject: Did you fix it? Reply with quote

send, !{esc}
is what i was trying to fit in there somewheres

using hotcorners2 to activate is kinda sweet
Back to top
View user's profile Send private message
Gauss



Joined: 10 Sep 2009
Posts: 203

PostPosted: Sun Feb 07, 2010 9:36 pm    Post subject: Reply with quote

flyingDman wrote:
What about this:
Code:
#\::
Process,Exist, firefox.exe
If !ErrorLevel
Run, "C:\Program Files\Mozilla Firefox\firefox.exe"
else
{
IfWinActive, ahk_class MozillaUIWindowClass
WinMinimize
else
WinActivate, ahk_class MozillaUIWindowClass
}
Return


Thanks flyingDman
Everything is working fine now Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group