aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tt.windows.ahk6
1 files changed, 4 insertions, 2 deletions
diff --git a/tt.windows.ahk b/tt.windows.ahk
index 26748a0..931e8a1 100644
--- a/tt.windows.ahk
+++ b/tt.windows.ahk
@@ -14,9 +14,9 @@ Gui, FakeWindow:Show, x0 y%y% AutoSize NA, FakeWindow
; Raise all windows of the same process
LWin Up::
+hwnd := WinActive("A")
Loop, 2
{
- hwnd := WinActive("A")
WinGet, exe, ProcessName, A
WinGet, L, List, ahk_exe %exe%
Loop, % L
@@ -26,14 +26,15 @@ Loop, 2
, "Int", 0, "Int", 0, "Int", 0, "Int", 0
, "UInt", 0x0001|0x0002|0x4000) ; SWP_NOSIZE|SWP_NOMOVE|SWP_ASYNCWINDOWPOS
}
+ WinActivate, ahk_id %hwnd%
}
return
; Hide all windows of the same process (except the current one)
+LWin Up::
+hwnd := WinActive("A")
Loop, 2
{
- hwnd := WinActive("A")
WinGet, exe, ProcessName, A
WinGet, L, List, ahk_exe %exe%
Loop, % L
@@ -45,6 +46,7 @@ Loop, 2
, "Int", 0, "Int", 0, "Int", 0, "Int", 0
, "UInt", 0x0001|0x0002|0x4000) ; SWP_NOSIZE|SWP_NOMOVE|SWP_ASYNCWINDOWPOS
}
+ WinActivate, ahk_id %hwnd%
}
return