Re: automate commands to an .exe console program through python

2011-12-14 Thread Juan Perez
Hi, Well if I can remmeber since last time I did something similar in C, it was close stdin channel in the open devices table (I don't know if it is the correct name in english, I learnt it in spanish) and put a pipe on it and then create a fork, parent it comunicates to the child through the pipe

Re: automate commands to an .exe console program through python

2011-12-13 Thread Chris Angelico
On Tue, Dec 13, 2011 at 11:35 PM, Juan Perez wrote: > My problem is thinking in windows console somewhat like linux shell, and do > same things I did with pipes in C programming. But it seems not to be the > case. It is (at least, it supports the basics of pipes and redirection); but what you're

Re: automate commands to an .exe console program through python

2011-12-13 Thread Juan Perez
Thank you for your responses, My problem is thinking in windows console somewhat like linux shell, and do same things I did with pipes in C programming. But it seems not to be the case. At a glance I dare say that sendkeys module is useful enough, but if I've understood well, you only can send me

Re: automate commands to an .exe console program through python

2011-12-13 Thread Tim Golden
On 13/12/2011 11:21, Juan Perez wrote: Well, if developers have to change something to the code, I'd continue with autoit, since is closer to real enviroment. You are right, autoit work by send parametres to GUI focused, but really I don't think it's something necessary for my purposes as I need

Re: automate commands to an .exe console program through python

2011-12-13 Thread Chris Angelico
On Tue, Dec 13, 2011 at 10:21 PM, Juan Perez wrote: > Well, if developers have to change something to the code, I'd continue with > autoit, since is closer to real enviroment. You are right, autoit work by > send parametres to GUI focused, but really I don't think it's something > necessary for my

Re: automate commands to an .exe console program through python

2011-12-13 Thread Juan Perez
Well, if developers have to change something to the code, I'd continue with autoit, since is closer to real enviroment. You are right, autoit work by send parametres to GUI focused, but really I don't think it's something necessary for my purposes as I need only send parameters to a windows cmd con

Re: automate commands to an .exe console program through python

2011-12-12 Thread Chris Angelico
On Tue, Dec 13, 2011 at 3:41 AM, Juan Perez wrote: > I need to automate a .exe console program in windows, and send key > characters like 'a', 'M' ... > I had this running in an autoIT script which with only activating cmd > window, and with the "send" parameter I had all already done. But I'm hav