asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

MouseInfo 0.1.3 cannot read RGB pixel values on my iMac: NA_on_macOS #829

Open DataMower opened 9 months ago

DataMower commented 9 months ago

iMac (Retina 5K, 27-inch, Late 2014), Screen Size: 2560 x 1440 macOS Big Sur 11.7.10 MouseInfo 0.1.3 Pillow version 8.0.1 PyAutoGUI version 0.9.52

MouseInfo cannot read RGB pixel values correctly:

RGB color shows 'NA_on_macOS' RGB as Hex shows 'NA_on_macOS' Color field is dark black

The rest works (although F-keys are not displayed anymore after first usage of a button).

How can I fix that?

DataMower commented 9 months ago

pyautogui seems to have problems with Mac Retina displays (see my explanation of issue #830). The source code should be updated to handle Retina displays.