I'm trying to open the windows editor (7, 32-bit system) and write to it from a python console (2.7.16, 32-bit). Opening the program works fine via:
p = subprocess.Popen([r'C:\Windows\System32\notepad.exe'], stdin=subprocess.PIPE)
But when I try to make a letter appear in the editor window via
p.communicate(input=b'a')
I get no return value on the command line (prompt not coming back) and nothing happens in the editor. What am I doing wrong?