Hey guys, Im having trouble with click with pynput, everytime I run a function that starts clicking whole program freezes.
I was looking at docs and there it says this:
The mouse listener thread
The listener callbacks are invoked directly from an operating thread on some platforms, notably Windows.
This means that long running procedures and blocking operations should not be invoked from the callback, as this risks freezing input for all processes.
A possible workaround is to just dispatch incoming messages to a queue, and let a separate thread handle them.
Which is propably the cause of the lag, but I dont really understand what it says, can someone help me please ?