Re: Sending keystrokes to Windows exe programs

2011-04-02 Thread eryksun ()
On Saturday, April 2, 2011 12:48:44 PM UTC-4, Alex van der Spek wrote: > > I can start a windows program on Vista with: > > >>> import subprocess > >>> dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE) > > Unfortunately sending keystrokes with communicate() does not appear to work: > > >>> dva

Re: Sending keystrokes to Windows exe programs

2011-04-02 Thread Chris Angelico
On Sun, Apr 3, 2011 at 2:48 AM, Alex van der Spek wrote: > I can start a windows program on Vista with: > import subprocess dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE) > > Unfortunately sending keystrokes with communicate() does not appear to work: > dva.communicate('F2') >

Re: Sending keystrokes to Windows exe programs

2011-04-02 Thread Chris Angelico
On Sun, Apr 3, 2011 at 2:48 AM, Alex van der Spek wrote: > I can start a windows program on Vista with: > import subprocess dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE) > > Unfortunately sending keystrokes with communicate() does not appear to work: > dva.communicate('F2') >

Sending keystrokes to Windows exe programs

2011-04-02 Thread Alex van der Spek
I can start a windows program on Vista with: import subprocess dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE) Unfortunately sending keystrokes with communicate() does not appear to work: dva.communicate('F2') this does not produce any result but it does make IDLE become really idle.