philip Gue
philip Gue

Reputation: 25

How to do pyautogui continue executing while screen windows is locked

I have this function thast works fine while the screen not is locked in windows 10.

def buscar_test():
    fw = pyautogui.getWindowsWithTitle('datos_carga.txt: Bloc de notas')
    fw = fw[0]
    fw.maximize()
    pyautogui.click(fw.center)

    #pyautogui.sleep(3)
    pyautogui.typewrite("Hello world")
    pyautogui.sleep(30)
    pyautogui.typewrite("Hello after windows locked")

But when the windows screen is locked this doesn´t work, Please any idea How do.?

While screen is locked in windows 10, continuing used pyautogui.

Upvotes: 0

Views: 424

Answers (0)

Related Questions