Sign in to follow this  
Followers 0
tbl

Detecting Responses in the Command Prompt Window

4 posts in this topic

I'm trying to run a DOS program in the Command Prompt window. I can get the program to run, but it requires regular responses such as YES and No at particular stages of its execution. To do this I need to detect the text in the window. Is there anyway of detecting text in a Command Window ?

Share this post


Link to post
Share on other sites



You bet! If you download the AutoIt3 beta release from the Developer forum you'll see that it has StdoutRead and StdinWrite functions for reading the console output from and writing console input to child processes.

Welcome to the forum.


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Share this post


Link to post
Share on other sites

I'm trying to run a DOS program in the Command Prompt window. I can get the program to run, but it requires regular responses such as YES and No at particular stages of its execution. To do this I need to detect the text in the window. Is there anyway of detecting text in a Command Window ?

Lookup StdoutRead and StdoutWrite in the help file.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Lookup StdoutRead and StdoutWrite in the help file.

Thanks very much - I will try the Developer version

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0