Nov-26-2018, 11:15 AM
Hi,
I need to be able to listen for and send keyboard inputs, even when the python application isn't in focus. So far I've looked at 'keyboard' and 'pynput'. They looked promising however often I'll need to listen to and send numpad keys, and for example in the packages mentioned the code for numpad 0 is the same as the regular number 0 and so on. I need to do this as another program globally listens for these hotkeys, and it differentiates between regular buttons and the numpad, for example if you set a hotkey in that program as 0 on the numpad, it will display in the menu as "NumPad0", and sending an event for the regular number 0 will not trigger it.
Kind Regards,
Kaine
I need to be able to listen for and send keyboard inputs, even when the python application isn't in focus. So far I've looked at 'keyboard' and 'pynput'. They looked promising however often I'll need to listen to and send numpad keys, and for example in the packages mentioned the code for numpad 0 is the same as the regular number 0 and so on. I need to do this as another program globally listens for these hotkeys, and it differentiates between regular buttons and the numpad, for example if you set a hotkey in that program as 0 on the numpad, it will display in the menu as "NumPad0", and sending an event for the regular number 0 will not trigger it.
Kind Regards,
Kaine