Sign in to follow this  
Followers 0
Cyber

How can I retrive the output of /ErrorStdOut?

3 posts in this topic

From AutoIT help:

...

Form2: Compiled.exe [/ErrorStdOut] [params ...]

Execute an compiled AutoIt3 Script File produced with Aut2Exe

...

I try with:

$foo = Run("test.exe /ErrorStdOut")

$return =""

While 1

$return &= StdoutRead($foo)

If @error Then ExitLoop

WEnd

MsgBox(0,"",$return)

But the return is blank :D

the code test.exe is simple:

msgbox(0,)

for generate and error


Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key

Share this post


Link to post
Share on other sites



/ErrorStdOut is suitable for the script to pass STDIO to another process like to a editor like Scite. Scite will accept the STDIO and show it in the output pane.

What you can use for your example is the STDIO flag in Run(). StdoutRead() will then capture any ConsoleWrite() usage and display it in your message box.

Example:

Test.exe contains

ConsoleWrite("Hello World" & @CRLF)

and thew result tested is

---------------------------

---------------------------

Hello World

---------------------------

OK

---------------------------

:D

Share this post


Link to post
Share on other sites

Thank you very much!!! :D


Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key

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