From c2ace84394d317e38d95edf8619409639e5ae3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 15 Dec 2021 01:50:44 +0100 Subject: windows: Fix Chrome issue --- tt.windows.ahk | 6 ++++-- 1 file 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 -- cgit v1.2.3