Sign in to follow this  
Followers 0
(^_^)

getting strings?

7 posts in this topic

#1 ·  Posted (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 :P if any one has ideas it would be greatly appreciated

Edited by (^_^)

[center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center]

Share this post


Link to post
Share on other sites



.... 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]

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

... 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]

Share this post


Link to post
Share on other sites

)" 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...

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

... 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]

Share this post


Link to post
Share on other sites

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]

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