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 

How to Maximize All Windows of Active Application?

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



Joined: 13 Jan 2008
Posts: 115

PostPosted: Sun Feb 14, 2010 10:23 pm    Post subject: How to Maximize All Windows of Active Application? Reply with quote

I want to make a hotkey that will maximize all the windows of the active window's class or process, but only those windows. I tried the following, but the Group does not reset with each thread:
Code:
+CapsLock::
   WinGet, mx, MinMax, A
   If(mx = 0)
   {
   WinGetClass, gclass, A
   GroupAdd, g2max, ahk_class %gclass%
   WinMaximize, ahk_group g2max
   }
   Else
   WinRestore, A
   return


Is there a GroupRemove function? I don't want windows of another app maximized just because I previously used the hotkey when one of the other app's windows was active.
Back to top
View user's profile Send private message Visit poster's website
instantrunoff



Joined: 13 Jan 2008
Posts: 115

PostPosted: Sun Feb 14, 2010 10:27 pm    Post subject: Reply with quote

I guess this works:

Code:
+CapsLock::
   WinGet, mx, MinMax, A
   If(mx = 0)
   {
   WinGetClass, gclass, A
   g2max := A_TickCount
   GroupAdd, %g2max%, ahk_class %gclass%
   WinMaximize, ahk_group %g2max%
   }
   Else
   WinRestore, A
   return
Back to top
View user's profile Send private message Visit poster's website
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