(^_^) Posted September 16, 2006 Share Posted September 16, 2006 (edited) im having trouble getting strings from cmd/telnet... im trying to use gui get msg but... im not figuring it out if any one can give me a hint on how to get a string outta cmd or like telnet i think i can figure out the rest of what i wanna do ... ive tryed winGetText and ControlGetText but niether seem to work on cmd or telnet, however it does work with notepad. im not sure if its possible cuz with AutoIt Window Info Tool its not gettin control for the cmd window or pickin up any text if any one has ideas it would be greatly appreciated Edited September 16, 2006 by (^_^) [center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center] Link to comment Share on other sites More sharing options...
(^_^) Posted September 16, 2006 Author Share Posted September 16, 2006 .... i cant figure it out is it even possible? humm anybody have qmodem i know i could do it with that quite easy [center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center] Link to comment Share on other sites More sharing options...
strate Posted September 16, 2006 Share Posted September 16, 2006 StderrRead, StdinWrite, Run, and StdoutRead INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
(^_^) Posted September 16, 2006 Author Share Posted September 16, 2006 ... im tryin this #include <Constants.au3> $foo = Run("telnet.exe") While 1 $line = StdoutRead($foo) If @error = -1 Then ExitLoop MsgBox(0, "STDOUT read:", $line) Wend While 1 $line = StderrRead($foo) If @error = -1 Then ExitLoop MsgBox(0, "STDERR read:", $line) Wend MsgBox(0, "Debug", "Exiting...") it gets error on std read and exits [center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center] Link to comment Share on other sites More sharing options...
Developers Jos Posted September 16, 2006 Developers Share Posted September 16, 2006 )" data-cid="237037" data-date="Sep 16 2006, 08:31 PM">... im tryin this #include <Constants.au3> $foo = Run("telnet.exe") While 1 $line = StdoutRead($foo) If @error = -1 Then ExitLoop MsgBox(0, "STDOUT read:", $line) Wend While 1 $line = StderrRead($foo) If @error = -1 Then ExitLoop MsgBox(0, "STDERR read:", $line) Wend MsgBox(0, "Debug", "Exiting...") it gets error on std read and exits Your RUN statement is wrong... needs a parameter for STD... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
(^_^) Posted September 16, 2006 Author Share Posted September 16, 2006 ... im kinda slow please enlightten me as to how i would set up my run statment... cuz every other way i try it it still doesnt work but what about this? is this run statment set up right? #include <Constants.au3> $foo = Run("telnet.exe", @SystemDir, $STDERR_CHILD + $STDOUT_CHILD) While 1 $line = StdoutRead($foo) If @error = -1 Then ExitLoop MsgBox(0, "STDOUT read:", $line) Wend While 1 $line = StderrRead($foo) If @error = -1 Then ExitLoop MsgBox(0, "STDERR read:", $line) Wend eather way its not pickin up the text [center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center] Link to comment Share on other sites More sharing options...
(^_^) Posted September 16, 2006 Author Share Posted September 16, 2006 bump ... so is it possable to get the text out of telnet? [center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center] Link to comment Share on other sites More sharing options...
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