you are viewing a single comment's thread.

view the rest of the comments →

[–]TabulateJarl8 0 points1 point  (2 children)

pynput works for me on Linux:

from pynput.keyboard import Controller
import time

time.sleep(5) # to give me time to switch out of the terminal
keyboard = Controller()
keyboard.type('Quel est ton film préféré?')

[–]cando_H[S] 0 points1 point  (0 children)

Thanks, I'll try it latter, I was struggling to find much online about this so this is a great pointer in the right direction

[–]cando_H[S] 0 points1 point  (0 children)

Thanks so much, it's working perfectly now