It seems as if the DesktopXYZ() commands output wrong coordinates when the compileroption DPI awareness is enabled.
Based on
chis code this can be reproduced with the following sniplet.
Code:
; Run this code with PB 5.7x
; Compile it with activated DPI aware in compileroptions
ExamineDesktops()
; Supposing we only have one desktop
Repeat
Debug DesktopWidth(0)
Debug DesktopMouseX()
Delay (250)
Until GetAsyncKeyState_(#VK_ESCAPE) & 1
Regardless of the compiler option "DPI aware" the real physical desktop size, mouse position etc. should be returned. At least that's what I would expect from the help texts for the commands. But this isn't the case.
My Desktopwidth is 1920 pixel, but the DPI aware compiled code shows a width of 1536 pixels (I use a desktopscaling of 125 %).
PB Help wrote:
"DesktopWidth(#Desktop) - Returns the width of the specified desktop. "
Greetings
Kurzer