I'm trying to get text from the screen automatically using pyautogui, with this code:
pyautogui.keyDown('shift')
time.sleep(0.1)
pyautogui.press('esc')
pyautogui.press(['down','down','down','down'])
pyautogui.keyUp('shift')
pyautogui.hotkey('ctrl','c')
but the command keyDown('shift')
doesn't work. Could someone help me with this error?