pynput keyboard listener does not detect keys on Mac OS X

前端 未结 5 1095
深忆病人
深忆病人 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 19:47

    Some people have stated that adding IDLE to supported accessibility apps is what allows python itself to run the listener.

    while your in a finder window, if you press cmd+shft+'.' (period key) it will show hidden files, which will allow you to navigate to usr/local/bin and look for your python implementation.

    On windows this is slightly different, I always run python/pycharm as admin and it never gives me any issues.

提交回复
热议问题