Is it possible to detect an accessibility setting—specifically, Display -> Shake Mouse Cursor to Locate
from a python script? I'd like to conditionally, rather than unilaterally, warn users to turn this off when using the script.
I'm operating with Mojave, if this functionality were available only to certain versions of OS XI should also wish to know that (or be pointed to where such information exists).
You can accomplish this using defaults
from the CLI. Run this command:
defaults read ~/Library/Preferences/.GlobalPreferences CGDisableCursorLocationMagnification
It returns 0
if shake mouse pointer to locate is enabled, and 1
if it is disabled.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.