Hi.. i am asking, is there a way especially in MemeryEx of Imagine Programming to get or determine the windows screen Scale and Layout? because of the the laptop is using 125 to 150% scale as default settings.. if there can anyone share? thank you so much...
Announcement
Collapse
No announcement yet.
Asking about the SCREEN Scale ang Layout
Collapse
X
-
The simplest solution would be to get the logical and vertical heights of the device your application lives on;
Globals:
Code:local user32 = Library.Load("user32.dll"); local gdi32 = Library.Load("gdi32.dll"); local VERTRES = 10; local DESKTOPVERTRES = 117; function GetDpiScale() local hWnd = Application.GetWndHandle(); local dc = user32.GetDC(hWnd); local logicalScreenHeight = gdi32.GetDeviceCaps(dc, VERTRES); local physicalScreenHeight = gdi32.GetDeviceCaps(dc, DESKTOPVERTRES); local dpiScalingFactor = physicalScreenHeight / logicalScreenHeight; user32.ReleaseDC(hWnd, dc); return dpiScalingFactor; end
Code:local scalingFactor = GetDpiScale(); local scalingPercentage = scalingFactor * 100;
-
Comment
-
Hi, Imagine Programming it works.. i am curios if we can change the settings of scale directly in the ams application?
Comment
-
Originally posted by telco View PostHi, Imagine Programming it works.. i am curios if we can change the settings of scale directly in the ams application?
Comment
Comment