AutoHotkey Community

It is currently May 27th, 2012, 2:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Firefox 3.6 issue
PostPosted: February 6th, 2010, 11:51 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
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 :?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2010, 2:39 am 
Offline

Joined: February 27th, 2009, 9:11 am
Posts: 693
Location: Burbank, California
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Did you fix it?
PostPosted: February 7th, 2010, 6:56 am 
Offline

Joined: October 30th, 2009, 1:03 am
Posts: 26
send, !{esc}
is what i was trying to fit in there somewheres

using hotcorners2 to activate is kinda sweet


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2010, 10:36 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
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 :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, LazyMan, poserpro, rbrtryn and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group