From 81c26328c7520c1c7458378363d8378e697ae866 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 27 Jan 2021 20:21:39 +0800 Subject: [PATCH] [feature] win+f for toggle maximum --- win/win.ahk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/win/win.ahk b/win/win.ahk index 3c8c9f5..fc0ac60 100644 --- a/win/win.ahk +++ b/win/win.ahk @@ -118,8 +118,14 @@ MoveCursorWin(toRight) { } -#f:: WinMaximize, A -#+f:: WinRestore, A +#f:: + WinGet, isMax, MinMax, A + if (isMax) { + WinRestore, A + } else { + WinMaximize, A + } + return #,:: #Left #.:: #Right #+u:: #+Left