from pywinauto import keyboard keyboard.send_keys("Something{ENTER}next line", with_spaces=True)
print("The text you want to print")
print("hello") print(2)