Generate Keystrokes In Linux From Python3
I need to generate keystrokes in Linux (Raspbian) from Python3. Something like uinput but for Python3. I'd prefer not to use subprocess for this. Easier to install (apt-get) the be
Solution 1:
Found PyUserInput that works.
https://github.com/SavinaRoja/PyUserInput/wiki/Installationhttps://github.com/SavinaRoja/PyUserInput
sudo apt-get install python3-pip
sudo pip-3.2 install python3-xlib
sudo pip-3.2 install PyUserInput
And the Python:
from pykeyboard importPyKeyboardkeyboard= PyKeyboard()
keyboard.tap_key("a")
Post a Comment for "Generate Keystrokes In Linux From Python3"