On Fri, 13 Sep 2013 01:27:53 +1000, Chris Angelico wrote:
> That said, though: These sorts of keystrokes often can be represented
> with escape sequences (I just tried it in xterm and Alt-D came out as
> "\e[d"),
Technically, that would be Meta-D (even if your Meta key has "Alt" printed
on it).
On Fri, Sep 13, 2013 at 12:06 AM, Wanderer wrote:
> Thanks, I didn't know that. I thought there would be some \n \t kind of
> combination or a unicode string for all the key combinations on my keyboard.
Unicode identifies every character, but keystrokes aren't characters.
Consider, for instance,
On Wednesday, September 11, 2013 4:23:57 PM UTC-4, Dave Angel wrote:
> On 11/9/2013 10:26, Wanderer wrote:
>
>
>
> > How do I send the command 'Alt+D' to subprocess.PIPE?
>
>
>
> That's not a command, it's a keystroke combination. And without knowing
>
> what RSConfig.exe is looking to get
On 11/9/2013 10:26, Wanderer wrote:
> How do I send the command 'Alt+D' to subprocess.PIPE?
That's not a command, it's a keystroke combination. And without knowing
what RSConfig.exe is looking to get its keystrokes, it might not even be
possible to feed it any keystrokes via the pipe.
if the pr
On Wednesday, September 11, 2013 1:43:09 PM UTC-4, Gary Herron wrote:
> On 09/11/2013 07:26 AM, Wanderer wrote:
>
> > How do I send the command 'Alt+D' to subprocess.PIPE?
>
> >
>
> > My code is
>
> >
>
> > import subprocess
>
> > rsconfig = subprocess.Popen(["C:\Program
> > Files\Photometri
On 09/11/2013 07:26 AM, Wanderer wrote:
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
Tha
On Wed, 11 Sep 2013 07:26:32 -0700, Wanderer wrote:
> How do I send the command 'Alt+D' to subprocess.PIPE?
You don't. GUI programs don't read stdin, they receive key press events
from the windowing system.
--
https://mail.python.org/mailman/listinfo/python-list
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
--
https://mail.python.org/mailman/listinfo/p