 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Gauss
Joined: 10 Sep 2009 Posts: 203
|
Posted: Sat Feb 06, 2010 10:51 pm Post subject: Firefox 3.6 issue |
|
|
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  |
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
Posted: Sun Feb 07, 2010 1:39 am Post subject: |
|
|
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 |
|
 |
Dinguz
Joined: 30 Oct 2009 Posts: 26
|
Posted: Sun Feb 07, 2010 5:56 am Post subject: Did you fix it? |
|
|
send, !{esc}
is what i was trying to fit in there somewheres
using hotcorners2 to activate is kinda sweet |
|
| Back to top |
|
 |
Gauss
Joined: 10 Sep 2009 Posts: 203
|
Posted: Sun Feb 07, 2010 9:36 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|