Python Forum

Full Version: hotkeys module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
researching a smooth way to do hotkeys (a way to have a single key press be passed to the program where that program then decides what to do based on what key was pressed) in python i found many modules.  looking over a few i found that each was specific to a single platform.  i would like to have a single module that can do hotkeys portably across all major platform as well a function in both CLI and GUI situations on each, where applicable.
that is trying to create the keypress events.  that looks fun and i might want to do that.  but today i am looking for a way to receive keypress events that happen in real life.  it's ok if it receives those simulated ones.  the idea is for the program to react in some way when an input press happens  if someone has written a vnc client in python for all the platforms then that might have the info needed to write one.