Jump to content

Recommended Posts

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]

Posted

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

Posted

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

  • Developers
Posted

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

Posted

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

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
×
×
  • Create New...