BlueSkyMemory Posted August 17, 2022 Posted August 17, 2022 While Scite doesn't support high dpi, I open it in compatibility settings. But it brings another problem:My au3 app automatically enables high dpi, causing gui disorder. I've tried #AutoIt3Wrapper_Res_HiDpi=N but it doesn't work. I'd appreciate it if you could offer some help. Thanks.
ioa747 Posted August 17, 2022 Posted August 17, 2022 (edited) Edited August 17, 2022 by ioa747 I know that I know nothing
Shark007 Posted August 17, 2022 Posted August 17, 2022 The most likely explanation is that you have Windows scaling set to something other than 100%. Windows scaling? Rightclick your desktop and choose Display settings.
ioa747 Posted August 17, 2022 Posted August 17, 2022 with a few words that is all they need #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_HiDpi=Y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** If Not (@Compiled ) Then DllCall("User32.dll","bool","SetProcessDPIAware") I know that I know nothing
Shark007 Posted August 17, 2022 Posted August 17, 2022 12 minutes ago, ioa747 said: with a few words that is all they need #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_HiDpi=Y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** If Not (@Compiled ) Then DllCall("User32.dll","bool","SetProcessDPIAware") That (alone) will not fix an incorrectly displayed GUI when Windows scaling is in use. For a solution for GUI presentation that takes Windows scaling into account, read HERE
BlueSkyMemory Posted August 18, 2022 Author Posted August 18, 2022 @ioa747 I've tried this but it doesn't work. It's interesting that VSCode originally supports High DPI and it also doesn't have an effect on AU3 app. When I use this API, the problem : appear(Not before) in VSCode, also appear in SciTE.
BlueSkyMemory Posted August 18, 2022 Author Posted August 18, 2022 @Shark007 It looks perfect to translate GUI codes, but what I want to do is just disable high dpi in AU3 app when I turn on high dpi in SciTE(Windows Settings)
Shark007 Posted August 18, 2022 Posted August 18, 2022 (edited) On 8/17/2022 at 11:17 PM, BlueSkyMemory said: @Shark007 It looks perfect to translate GUI codes, but what I want to do is just disable high dpi in AU3 app when I turn on high dpi in SciTE(Windows Settings) What you are failing to grasp here is that the compiled script is not using high dpi but your computer is using it. The solution I pointed to will help you to make your compiled script also use high dpi. Edited August 19, 2022 by Shark007
BlueSkyMemory Posted August 20, 2022 Author Posted August 20, 2022 On 8/19/2022 at 12:22 AM, Shark007 said: What you are failing to grasp here is that the compiled script is not using high dpi but your computer is using it. The solution I pointed to will help you to make your compiled script also use high dpi. Actually I DON'T want to use high DPI in my AU3 app when using high DPI in SciTE.
BlueSkyMemory Posted August 20, 2022 Author Posted August 20, 2022 The problem has solved. You can modify the custom DPI Settings for both programs separately. Shark007 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now