Closed MrKuh closed 3 years ago
Since you do not specify which operating system you use, I can only give you a generic answer.
The synthetic events emitted by pynput to simulate mouse clicks will generally contain a screen coordinate. This introduces a race, since the library first must read the current mouse position, then generate the fake event, and then dispatch it. If the mouse is moved after the position has been read, the click event will use old coordinates.
I made a clicker for minecraft, but I noticed that it effects my mouse movement.
Sometimes it feels like it gets stuck or moves by itself but only very minimal but noticeable.
I use a key and a mouse listener to click on hold and press and release to click a mouse button.