Sign in to follow this  
Followers 0
Morel

Read The Text From CMD Window ?

4 posts in this topic

Hello,

There is an Option the Get The Text of a _RunDOS ,RUN or RUNWAIT to a Console (Or File)

Window That i Can Create With EditBox GUI ?

10X

Morel

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

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