Jump to content

Read The Text From CMD Window ?


Morel
 Share

Recommended Posts

Thanks For The Tip But i Explain My Slef

i am running from Autoit The Beyondexe with a swtiches that i made by a gui

when the beyondexec running it open CMD window and what i need is when i run the Beyondexec

from the Autoit is to read the text in tha cmd window and write it to a EditBox

is it posibble ?

:o

Morel

Link to comment
Share on other sites

You'll have to try it, something like...

(requires beta)

$Foo = Run("c:\beyondfolder\beyond.exe","c:\BeyondFolder",  @SW_show, 7)

While 1
     $myLine = CheckOutPut()
     Sleep (1000)
Wend


Func CheckOutPut()
$line = StdoutRead($foo,"",true) ; have a peak 
    If $line <> 0 then           ;if data then read the line
        $line = StdoutRead($foo)
                  MsgBox (0,"Std",$line);messagebox for easy debug
        Return $line             ;return the text
Endif
EndFunc
Edited by ChrisL
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...