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. "

The problem is, that different Windows versions handle DPI awareness in different ways.After Windows 7, there were significant changes especially in Windows 8.1.Windows 10 introduced more changes, and even different versions of Windows 10 behave differently in this regard.For more details see e.g. https://kynosarges.org/WindowsDpi.html