diff options
author | John Ankarström <john@ankarstrom.se> | 2021-12-15 01:50:44 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-12-15 01:50:44 +0100 |
commit | c2ace84394d317e38d95edf8619409639e5ae3f5 (patch) | |
tree | 375a9bbd9bda9e867fdc1b9579fc1b76ea5705b0 | |
parent | 9baa19758e248ea7c4a76e5b554d94a488ef6a2c (diff) | |
download | ahk-c2ace84394d317e38d95edf8619409639e5ae3f5.tar.gz |
windows: Fix Chrome issue
-rw-r--r-- | tt.windows.ahk | 6 |
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 |