How to get key press keyboard source in hotkey hook in Python?

113 Views Asked by At

I have to create program, which react to f3, f4 and q press from specific keyboard without focus. I have to handle 2 things:

How to detect on which keyboard it was pressed. How to detect Q press. VK does not contain letters. I have connected 2 keyboards over USB and I need to react only for one keyboard. How to get key click source keyboard? Thank you for help I really need this.

My actual code: https://hastebin.com/enomowesof.properties

0

There are 0 best solutions below