I have tried using python libraries: pyautogui + pwinauto. But to no avail. Once the window is minimized the text is no longer send.
code snippet:
import pyautogui
import time
pyautogui.hotkey('win')
time.sleep(1)
pyautogui.typewrite('notepad')
pyautogui.hotkey('enter')
time.sleep(2)
pyautogui.typewrite('test aaaaaaaaaaaaaa bbbbbbbbbbbb cccccccccc ')