mouse.click() does not work for the interpreter in terminal
Steps to reproduce:
- Install mouse:
python3 -m pip install mouse - Open the interpreter with sudo:
sudo python3 - Do the following:
import mouse
import time
while True:
time.sleep(1)
mouse.click()
No errors are thrown; It just silently fails. My mouse doesn't appear to select anything when I slowly glide it by some text in a text editor.
I am running Ubuntu 18.04.5 LTS
I have the same problem, I'm running Ubuntu 19.10
- test it in a other ubuntu. today i noticed that my maus script works in another (newly installed) kubuntu. but not in the system in which I work
- try
sudo apt-get install python3-autopilot
For me clicking generally is not working on Ubuntu 18.04. I tried to install python3-autopilot without success.
I'm having this same issue on Manjaro
I have the same issue on Fedora 34.
I'm having the same problem in Ubuntu 20.04.3. I guess that the problem is the nixmouse that must have been changed. But first I'll test on my mac that uses darwinmouse.
Same on raspberry pi os
Same on Arch
this is also a duplicate of #37