import pyautogui from time import sleep while True: pyautogui.write("Print what you want here") pyautogui.press('Enter')