adam162 Posted August 25, 2010 Posted August 25, 2010 Is there a way to write to a cmd window and also let the use write in the cmd window For example in a windows cmd you type "netsh" and you get a prompt "netsh>....." (..... where you enter the command) and then how to read the input
Tvern Posted August 25, 2010 Posted August 25, 2010 (edited) You can use StdoutRead and StdinWrite to read and write from and to the console. However if you run netsh through cmd I don't think that works, so it's best to open netsh directly.Edit: I had to open FTP directly, but if you run netsh from cmd it seems to work fine. Edited August 25, 2010 by Tvern
adam162 Posted August 25, 2010 Author Posted August 25, 2010 Im sorry I used the netsh cmd as an example im not trying to use netsh. I wanted to show that the program sends back "netsh>" and waits for the user to write a command. Is that possible in autoit
somdcomputerguy Posted August 25, 2010 Posted August 25, 2010 This function, ControlSend, will probably be of use to you. Use the AutoIt Window Info Tool (AU3Info) to get the info needed. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now