pynput keyboard listener does not detect keys on Mac OS X

前端 未结 5 1047
深忆病人
深忆病人 2021-01-21 19:36

I am using pynput to record keystrokes via Listener on OS X Mojave. I am using Pycharm as my IDE for running the code.

I was not able to get it to work using the same ex

5条回答
  •  佛祖请我去吃肉
    2021-01-21 20:05

    Try superuser ($sudo su) and run your python code in terminal, I think it should work

    Im was working with OSX 10.12 and pynput was only getting cmd ctrl fn and option keys when pressed but now in superuser it gets the keys.

提交回复
热议问题