Is there a cross-platform python low-level API to capture or generate keyboard events?

后端 未结 6 478
北恋
北恋 2020-12-16 01:21

I am trying to write a cross-platform python program that would run in the background, monitor all keyboard events and when it sees some specific shortcuts, it generates one

6条回答
  •  悲哀的现实
    2020-12-16 02:19

    Cross-platform UI libraries such as Tkinter or wxPython have API for keyboard events. Using these you could map «CTRL» + «@» to an action.

提交回复
热议问题