asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

MoveTo freezes after a few seconds of code running #719

Open masterofjavascript opened 2 years ago

masterofjavascript commented 2 years ago

I was trying to make a python script to automatically move and click on a few things, and it all works, but after about a minute, pyautogui.moveTo just stops working, any code after it works, but that doesn't.

below i have included a screenshot, with an arrow where the code stops working, if you need more information please just say, any help would be appreciated: image

AaronKe11er commented 2 years ago

Are you opening up a program? Is it possible that the program you are opening is blocking pyautogui?