PyAutoGui slow calls to moveto() on Mac OS X
See original GitHub issuefor y in range(landscapeRegion[1], landscapeRegion[1] + landscapeRegion[3], 40):
for x in range(landscapeRegion[0], landscapeRegion[0] + landscapeRegion[2], 40):
bot.moveTo(x, y, 0)
bot.click(button='right')
The moveTo() takes about half a second between moves. The move is instant but it will sit at it’s destination for half a second even though the moveTo is being called rapidly.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top Results From Across the Web
How to get pyautogui's click/moveTo working on mac?
The movement works for me (on Windows), though I do get the message pyautogui.FailSafeException: PyAutoGUI fail-safe triggered from mouse moving ...
Read more >Mouse Control Functions - PyAutoGUI documentation
The moveTo() function will move the mouse cursor to the X and Y integer coordinates you pass it. The ; (If the duration...
Read more >PyAutoGUI Documentation - Read the Docs
PyAutoGUI works on Windows, macOS, and Linux, and runs on Python 2 and 3 ... The moveTo() function will move the mouse cursor...
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 >20 controlling the keyboard and mouse with gui automation
Windows and macOS users can simply use pip to install PyAutoGUI. ... moveTo() calls, the mouse cursor would have instantly teleported from point...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey, I tried a lot of different things but there was always a delay between actions. For rapid movements, I would suggest that you shift to Java and use the inbuilt java.awt.Robot class for mouse and keyboard, which is quite powerful and seamless. When rapid movements are not required, PyAutoGui is a great library.
just write
or just