Hallo SolemnStrike
Eine Lösung wäre wohl:
Code
#include <MsgBoxConstants.au3>
Global Const $gc_iDPI = RegRead('HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics', 'AppliedDPI')
If @error Then
ConsoleWrite("! Fehler beim Auslesen der DPI-Einstellung aus der Registry.")
Else
If $gc_iDPI <> 96 Then MsgBox($MB_ICONWARNING, "DPI-Warnung", "Stelle die Bildschirmskalierung auf 100%")
EndIf
; oder
;~ #include <WinAPIGdiDC.au3>
;~ Global Const $gc_hDC = _WinAPI_GetDC(0)
;~ Global Const $gc_iDPI = _WinAPI_GetDeviceCaps($gc_hDC, 90)
;~ _WinAPI_ReleaseDC(0, $gc_hDC)
;~ If $gc_iDPI <> 96 Then MsgBox($MB_ICONWARNING, "DPI-Warnung", "Stelle die Bildschirmskalierung auf 100%")
Alles anzeigen