From a17efe97e553b9345541e4ae32fe53b1b56547c5 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 17 Dec 2025 09:02:53 +0100 Subject: [PATCH] Disable window cycling if manually switching to window --- src/Main_Class.ahk | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/Main_Class.ahk b/src/Main_Class.ahk index 09c2280..93f880e 100644 --- a/src/Main_Class.ahk +++ b/src/Main_Class.ahk @@ -1,6 +1,4 @@ - - -Class Main_Class extends ThumbWindow { +Class Main_Class extends ThumbWindow { Static WM_DESTROY := 0x02, WM_SIZE := 0x05, WM_NCCALCSIZE := 0x83, @@ -555,7 +553,7 @@ Class Main_Class extends ThumbWindow { Index := 1 } } - This.ActivateEVEWindow(,,This.CleanTitle(Arr[Index])) + This.ActivateEVEWindow(,,This.CleanTitle(Arr[Index]), true) } } } @@ -574,7 +572,7 @@ Class Main_Class extends ThumbWindow { Index := length } } - This.ActivateEVEWindow(,,This.CleanTitle(Arr[Index])) + This.ActivateEVEWindow(,,This.CleanTitle(Arr[Index]), true) } } @@ -769,7 +767,15 @@ Class Main_Class extends ThumbWindow { This.DestroyThumbnailsToggle := 1 } - ActivateEVEWindow(hwnd?,ThisHotkey?, title?) { + ActivateEVEWindow(hwnd?,ThisHotkey?, title?, fromAutoForward := false) { + ; Disable all auto-forward groups (emergency shutoff) - but not when called from auto-forward itself + if (!fromAutoForward) { + for groupIdx in This.AutoForwardEnabled { + This.AutoForwardEnabled[groupIdx] := false + This.AutoForwardVisited[groupIdx] := [] + } + } + ; If the user clicks the Thumbnail then hwnd stores the Thumbnail Hwnd. Here the Hwnd gets changed to the contiguous EVE window hwnd if (IsSet(hwnd) && This.ThumbHwnd_EvEHwnd.Has(hwnd)) { hwnd := WinExist(This.ThumbHwnd_EvEHwnd[hwnd]) @@ -1010,4 +1016,4 @@ Class Main_Class extends ThumbWindow { FileDelete("EVE-X-Preview.json") FileAppend(JSON.Dump(This._JSON, , " "), "EVE-X-Preview.json") } -} +} \ No newline at end of file