Monitor global keyboard input on mac using python

Trying to write a program that allows users to control the program using global shortcuts. I already have a working version for Windows using pyHook, but cannot figure out how to grab global login on a Mac. The other questions I read here mainly seemed to be about Linux, not Mac. (that's why I ask) Is there a way to do this?

+3
source share
1 answer

I believe you can use PyObjCAPIs to handle hooks; See this explanation of what to do.

0
source

Source: https://habr.com/ru/post/1758151/


All Articles