question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyautogui does not interact with the mouse

See original GitHub issue

I created a stackoverflow question about this here, but it seems no one has any solutions to my problem. The linked post has the details and visually shows the issue I am having, but the basic problem is that pyautogui is not moving my visual mouse pointer. Additionally, when I run a script, moving my mouse to the top left corner does not stop the script. Strangely, the script still works as long as I do not move my mouse, as if the library is interacting with an invisible mouse.

What is going wrong and how might I fix it?

I am running Ubuntu 18.04 LTS, and it is essentially a fresh install. Please see my link to the stackoverflow question for the photo example and more detail.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:16

github_iconTop GitHub Comments

2reactions
Gabriel-Nunescommented, Apr 2, 2019

Try to run the Python IDLE as Admin.

1reaction
chauanphucommented, Jul 27, 2021

It seems that after you install the pyautogui and its following packages, you should restart the computer. At first my pyautogui on my ubuntu doesn’t read pixel nor interact with mouse. But after restarting, now it works like a charm

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse Control Functions - PyAutoGUI documentation
Mouse Movement¶ ... The moveTo() function will move the mouse cursor to the X and Y integer coordinates you pass it. The None...
Read more >
pyautogui mouse click not working in certain programs
Now, I have noticed the following odd behavior: The first step always works, i.e. the specific program window is appears on the screen....
Read more >
PyAutoGUI not working? Use DirectInput - YouTube
PyAutoGUI does not work for all video games, so I wrote PyDirectInput to solve this. With it, you can easily swap your PyAutoGUI...
Read more >
PyAutoGUI not working? Use DirectInput
Since my video game botting tutorial, where we used PyAutoGUI, multiple people have told me that PyAutoGUI doesn't work with the video game ......
Read more >
PyAutoGUI - PyPI
PyAutoGUI lets Python control the mouse and keyboard, and other GUI ... reliable for the screen of a second monitor (the mouse functions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found