A function callback every time a key is pressed (regardless of which window has focus)?

血红的双手。 提交于 2019-11-29 07:32:49

Take a look at what others have done already. You can take a look on how this pykeylogger code handles Linux in its backend, and see if that works for you.

Matthew Rankin

I'd recommend that you look at the StackOverflow question: Is there a cross-platform python low-level API to capture or generate keyboard events?

You could also look at the Simple Python Keylogger.

While not written in Python, you could also look at the LKL Linux KeyLogger. WEB-NES-BAY has instructions for using the LKL Linux KeyLogger.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!