I am trying to start a standalone exe file running under dospromt. The program will ask for a user input from the screen to be able to run through.
I have started that from a wxpython application and just wonder how can one pass the input from within the python instead of type the string in the dos-promt window?
It seems one has to get the handle of the dos-promt window and control the key strike from the python app.
There is no problem if the dos-promt is redirected by using wx.process where both the input and outputstream can be accessed.
Hi, lists
I am trying to start a standalone exe file running under dospromt. The program will ask for a user input from the screen to be able to run through.
I have started that from a wxpython application and just wonder how can one pass the input from within the python instead of type the string in the dos-promt window?
It seems one has to get the handle of the dos-promt window and control the key strike from the python app.
There is no problem if the dos-promt is redirected by using wx.process where both the input and outputstream can be accessed.
thanks
n.ye
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Hi, lists
I am trying to start a standalone exe file running under dospromt. The program will ask for a user input from the screen to be able to run through.
I have started that from a wxpython application and just wonder how can one pass the input from within the python instead of type the string in the dos-promt window?
It seems one has to get the handle of the dos-promt window and control the key strike from the python app.
I'm not sure if that is possible... So in other words you are wanting to pass the text into the process as if the input stream was redirected, but you still want the console window to be displayed normally, right? I might work if you do it in two steps: Exec a normal console process with no redirection so you get the console window and pass to it somehow the text you want to be fed to the other process, and then have it launch the other process with the streams redirected.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!