asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

mouse works, but not keyboard ubuntu/wayland #770

Open hsweet opened 1 year ago

hsweet commented 1 year ago

pyautogui.typewrite("whatever") or any other command that sends text has no output on my system when using wayland but does on the same system in an X11 session. It also works on my wife's mac. I am using Ubuntu 22.04.

Aworldc commented 1 year ago

same. i think it tries to connect to the x11 server.

yezhengli-Mr9 commented 4 months ago

Keyboard not work on Ubuntu 22.04 but worked on Ubuntu 20.04. Any alternative to pyautogui then? Feel keyboard was strange since has to run under root.