0

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.

philip Gue
  • 25
  • 4

0 Answers0