From b5902250f8189f6b3d345b7ba1ac998de6d6b55b Mon Sep 17 00:00:00 2001 From: g0nzo83 <83645983+g0nzo83@users.noreply.github.com> Date: Mon, 20 May 2024 02:00:14 +0200 Subject: [PATCH] fixes DPI Scaling --- Main.ahk | 2 +- src/Main_Class.ahk | 2 +- src/Settings_Gui.ahk | 2 +- src/ThumbWindow.ahk | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Main.ahk b/Main.ahk index 5bc62d7..4d7d95d 100644 --- a/Main.ahk +++ b/Main.ahk @@ -26,7 +26,7 @@ A_MaxHotKeysPerInterval := 10000 TODO ######################### */ -;@Ahk2Exe-Let U_version = 1.0.3. +;@Ahk2Exe-Let U_version = 1.0.4. ;@Ahk2Exe-SetVersion %U_version% ;@Ahk2Exe-SetFileVersion %U_version% ;@Ahk2Exe-SetCopyright gonzo83 diff --git a/src/Main_Class.ahk b/src/Main_Class.ahk index 2d16427..059f34f 100644 --- a/src/Main_Class.ahk +++ b/src/Main_Class.ahk @@ -53,7 +53,7 @@ Class Main_Class extends ThumbWindow { ;Register all posible modifire combinations prefixArr := ["","^","!", "#", "+", "+^", "+#", "+!", "^#", "^!","#!", "^+!", "^+#", "^#!", "+!#","^+#!"] for index, prefix in prefixArr - Hotkey( prefix . Main_Class.virtualKey, ObjBindMethod(This, "ActivateForgroundWindow"), "P1") + Hotkey( prefix . Main_Class.virtualKey, ObjBindMethod(This, "ActivateForgroundWindow"), "S P1") ; Register Hotkey for Puase Hotkeys if the user has is Set if (This.Suspend_Hotkeys_Hotkey != "") { diff --git a/src/Settings_Gui.ahk b/src/Settings_Gui.ahk index 49a7025..c82f0d1 100644 --- a/src/Settings_Gui.ahk +++ b/src/Settings_Gui.ahk @@ -4,7 +4,7 @@ This.NeedRestart := 0 SetControlDelay(-1) - This.S_Gui := Gui("+OwnDialogs +MinimizeBox -Resize -MaximizeBox -DPIScale SysMenu +MinSize500x250") + This.S_Gui := Gui("+OwnDialogs +MinimizeBox -Resize -MaximizeBox SysMenu +MinSize500x250") This.S_Gui.Title := "EVE-X-Preview - Settings" ;Font options for the Buttons diff --git a/src/ThumbWindow.ahk b/src/ThumbWindow.ahk index 622f450..2e8a759 100644 --- a/src/ThumbWindow.ahk +++ b/src/ThumbWindow.ahk @@ -5,7 +5,7 @@ Class ThumbWindow extends Propertys { Create_Thumbnail(Win_Hwnd, Win_Title) { ThumbObj := Map() - ThumbObj["Window"] := Gui("+Owner +LastFound -Caption +ToolWindow -DPIScale +E0x08000000 " (This.ShowThumbnailsAlwaysOnTop ? "AlwaysOnTop" : "-AlwaysOnTop") , Win_Title) ;WS_EX_NOACTIVATE -> +E0x08000000 + ThumbObj["Window"] := Gui("+Owner +LastFound -Caption +ToolWindow +E0x08000000 " (This.ShowThumbnailsAlwaysOnTop ? "AlwaysOnTop" : "-AlwaysOnTop") , Win_Title) ;WS_EX_NOACTIVATE -> +E0x08000000 ThumbObj["Window"].OnEvent("Close", GUI_Close_Button) ; The Backcolor which is visible when no thumbnail is displayed