 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
instantrunoff
Joined: 13 Jan 2008 Posts: 115
|
Posted: Sun Feb 14, 2010 10:23 pm Post subject: How to Maximize All Windows of Active Application? |
|
|
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 |
|
 |
instantrunoff
Joined: 13 Jan 2008 Posts: 115
|
Posted: Sun Feb 14, 2010 10:27 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|