Send alt key to subprocess.PIPE stdin

Wanderer wanderer at dialup4less.com
Wed Sep 11 10:26:32 EDT 2013


How do I send the command 'Alt+D' to subprocess.PIPE?

My code is

import subprocess
rsconfig = subprocess.Popen(["C:\Program Files\Photometrics\PVCam64\utilities\RSConfig\RSConfig.exe", ],stdin=subprocess.PIPE)

rsconfig.stdin.write('Alt+D')

Thanks



More information about the Python-list mailing list