I’m doing some tests with python-uinput to simulate some key presses but I can’t find a way to dynamically call uinput.emit(). What I mean is that I want for example to get the characters from a file and call uinput.emit() for each of them.
Reading the file character-by-character isn’t a problem, the problem is that as far as I know uinput doesn’t like you pass a character string or the hex code of that ASCII character. Is there any way to do this?
this is what getattr is for …
I think should work