Sign in to follow this  
Followers 0
Delta

Read text from a console application

3 posts in this topic

I'm trying to read the text output from a console application but the values return nothing. Is it even possible? or is there a better way?

While 1
    $nMsg = GUIGetMsg()
    $nState = GUICtrlRead($AutoRestart)
    $nRead = WinGetText("C:\Perl\bin\perl.exe")
    GUICtrlSetData($Output, $nRead)
    Select
        Case $nMsg = $GUI_EVENT_CLOSE
            Exit
        Case $nMsg = $Start
            ShellExecute("C2DTSBOT.pl")
        Case $nMsg = $Stop
            ProcessClose("perl.exe")
        Case $nState = $GUI_CHECKED
            If ProcessExists("perl.exe") Then
                ;;;
            Else
                ShellExecute("C2DTSBOT.pl")
            EndIf
    EndSelect
WEnd

[size="1"]Please stop confusing "how to" with "how do"[/size]

Share this post


Link to post
Share on other sites



Perhaps StderrRead might work.


UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.

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