From 196349046d906e95a8481533851e42c56eb3f82c Mon Sep 17 00:00:00 2001 From: Zjamnik Date: Tue, 13 Feb 2024 19:19:36 +0100 Subject: [PATCH] close while minimized fix --- stratagems.ahk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stratagems.ahk b/stratagems.ahk index 85641b6..897e866 100644 --- a/stratagems.ahk +++ b/stratagems.ahk @@ -190,8 +190,10 @@ loop parse, IniRead(configPath, "HOTKEYS"), "`n" { MyGui_Close(*) { SetNumLockState(orgNumlockState = 0 ? "Off" : "On") MyGui.GetPos(&guiX, &guiY) - setValue("WINDOW", "X", guiX) - setValue("WINDOW", "Y", guiY) + if ( not guiX = -32000 and not guiY = -32000) { + setValue("WINDOW", "X", guiX) + setValue("WINDOW", "Y", guiY) + } ExitApp(0) }