Jump to content

Recommended Posts

Posted

Hi!

 

When I use my autoit GUI with high DPI monitor, it gets blurry because of faulty scaling. How do I disable scaling for my GUI? I tried SetProcessDPIAwareness but it does not seem to work.
 

$__eDPIAWARNESS_Process_DPI_Unaware = 0
$__eDPIAWARNESS_Process_System_DPI_Aware = 1
$__eDPIAWARNESS_Process_Per_Monitor_DPI_Aware = 2

Func _WinAPI_SetProcessDPIAwareness($iPROCESS_DPI_AWARENESS)
    Return DllCall('Shcore.dll', 'int', 'SetProcessDPIAwareness', 'int', $iPROCESS_DPI_AWARENESS)
EndFunc   ;==>_WinAPI_SetProcessDPIAwareness

_WinAPI_SetProcessDPIAwareness($__eDPIAWARNESS_Process_Per_Monitor_DPI_Aware)

$gui =  GUICreate("Title")
GUICtrlCreateLabel("Hello World", 10, 10)
GUISetState(@SW_SHOW)

while GUIGetMsg() <> -3
WEnd

 

edited

  • 3 weeks later...
Posted (edited)
_WinAPI_SetProcessDPIAwareness is a privately defined function possibly originating with the user, InnI

My research reveals that It is not a working standard.

Edited by Shark007

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...