Python Forum

Full Version: Are there any python alternatives for LuaMacros?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently attempting to create a shortcut keyboard- a second keyboard plugged into my PC which has all it's key-presses intercepted and interpreted into defined shortcuts.

Currently, the only program I'm capable of finding is LuaMacros- it does this, I've run a few tests and it seems like I would be able to do... something of what I want with it... but is there any alternative for this with python? Like, maybe a python library to intercept key-presses and differentiate between multiple keyboards?

I've done a bit of research and haven't found any. For more idea of what I'm talking about, here is a Tom Scott segment discussing this issue.


(It appears the timestamp is not embedding correctly. Skip to 10:19


Thanks in advance, would appreciate any guidance or suggestions on a direction I should explore.
Although I haven't used this package yet, it looks like it will satisfy your needs: https://pypi.org/project/keyboard/
for full list, see: https://pypi.org/search/?q=keyboard