From 738cc7581d441d269e108e67050e8ab42d18a164 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 27 Feb 2021 09:52:47 +0800 Subject: [PATCH] [feature] auto unmaximize window before move --- win/win.ahk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win/win.ahk b/win/win.ahk index dcf3d8d..440e64e 100644 --- a/win/win.ahk +++ b/win/win.ahk @@ -160,6 +160,10 @@ FocusWinByDirection(direction) { } MoveActiveWinByDirection(direction) { + WinGet, isMax, MinMax, A + if (isMax) { + WinRestore, A + } global RATIO GetCursorMonGeometry(x, y, w, h) activeWinId := WinExist("A")