From c91ea0fceb3af03b0cb155760dba8b47b9a24df7 Mon Sep 17 00:00:00 2001 From: kazhafeizhal <2397633100@qq.com> Date: Sat, 30 Jul 2022 13:39:51 +0800 Subject: [PATCH] update --- menu.ahk | 12 +++++++----- menu.exe | Bin 1550336 -> 1550336 bytes 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/menu.ahk b/menu.ahk index 0b85007..acb197f 100644 --- a/menu.ahk +++ b/menu.ahk @@ -1260,9 +1260,11 @@ WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) PostMessage, 0xA1, 2 ; WM_NCLBUTTONDOWN KeyWait, LButton, U WinGetPos, X, Y, W, H, ahk_id %MyGuiHwnd% - log.info(MyGuiHwnd, x, y, w, h) - g_config.win_x := X - g_config.win_y := Y - g_config.win_w := W - saveconfig(g_config) + if(x != "" && y != "" && W != "") + { + g_config.win_x := X + g_config.win_y := Y + g_config.win_w := W + saveconfig(g_config) + } } \ No newline at end of file diff --git a/menu.exe b/menu.exe index e246821def32b9bff4b594565f9a3b32ae4efb03..00563aea6324ff677d5325c2e43bde9cc528f19f 100644 GIT binary patch delta 294 zcmZp;5Z7=aZbJ_vW5ecN#$+JX{E?~sBNHPKgJ@@g<<7EXWq88E00ug?5)4W}7K|SN@g