LOUDO56 / PyMacroRecord

Free and Open Source Macro Recorder with a modern GUI using Python
https://www.pymacrorecord.com/
GNU General Public License v3.0
260 stars 51 forks source link

Missing pynput support for Linux-Wayland #61

Open superstes opened 4 days ago

superstes commented 4 days ago

Many common linux distributions use Wayland as GUI backend.

The recording and keyboard-output works, but the mouse-movement and -clicks are not executed. No error is visible. No exception occurrs.

It seems the pynput project does not support it: https://github.com/moses-palmer/pynput/issues/331

The same seems to be true for pyautogui: https://github.com/asweigart/pyautogui/issues/111

From the comments I've read that the evdev can be used in that case.

I will test it and report back.

superstes commented 4 days ago

Have not yet seen an implementation that does not need root privileges. The yDoTool (https://docs.o-x-l.com/automation/ydotool.html) looks OK for me. But I'll test further..

superstes commented 4 days ago

Yeah... the pre-compiled version of yDoTool also has some major bugs :(

superstes commented 3 days ago

Note: Found out that the mouse position from pynput is also incorrect