I have been trying to use python to bind my customize event to keyboard event with specific event code number like below
ctypes.windll.user32.keybd_event('0x24',0,2,0)
but as you already know
windll
the library only worked on Windows OS. how can I do something like this in Linux machines? I read about
CDLL('libc.so.6')
but I can't figure it out if this library is helpful or not?
is there another way to set keypress listener in OS level with python using the virtual key code?