import pyautogui from time import sleep sleep(5) f = open("textogrande", 'a') for word in f: pyautogui.typewrite(word) pyautogui.press("enter")