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
