PixelGetColor return value is not correct when x,y reported by AU3Info - (Moved)
February 7, 2021
PixelGetColor return value is not correct when x,y reported by AU3Info - (Moved)
If (x,y) is given by AU3Info tool, PixelGetColor(x,y) return value is not correct. But if (x,y) is given by ColorPicker( https://annystudio.com/software/colorpicker/ ),the return value is correct. How to solve this issue? Thank you.
By vip88,
February 6, 2021
4 replies
Yes. Here is code to save the day: ;;; https://www.autoitscript.com/forum/topic/205086-get-screen-width-and-height-but-not-the-same-as-os-moved/?tab=comments#comment-1474562 ;~ #include <WinAPISys.au3> ;~ ConsoleWrite(@DesktopWidth & "x" & @DesktopHeight & @CRLF) ; 2560x1080 ; 2048x864 @ 125% ;~ ConsoleWrite( _WinAPI_GetSystemMetrics(0) & "x" & _WinAPI_GetSystemMetrics(1) & @CRLF) ; 2560x1080 ; 2048x864 @ 125% ;~ ConsoleWrite( _