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.06k stars 1.22k forks source link

Pyautogui cannot run after screen lock #723

Open dissminghwm opened 1 year ago

dissminghwm commented 1 year ago

I wrote a program to automatically lock and unlock the screen for windows 10,

However, I found that when unlocking the input password, the mouse positioning failed, but the keyboard input "enter" was valid

help! ! !

romaklym commented 1 year ago

Can you share your code?

I wrote a program to automatically lock and unlock the screen for windows 10,

However, I found that when unlocking the input password, the mouse positioning failed, but the keyboard input "enter" was valid

help! ! !

NgJun commented 5 months ago

I have some kind of same situation. I am writing program to control my mouse with chrome. My PyAutoGUI-based program is running on a machine which is accessed remotely from another computer (my main computer) by RemoteDesktop, when I minimized the RemoteDesktop window on my main computer, the pyautogui-program jumps into error, saying "PyAutoGUI fail-safe triggered from mouse moving to a corner of the screen. To disable..." I am searching for any suggestion to overcome this.

christiangemesi commented 2 months ago

i got the same problem like @NgJun did you figure smth out by now?