Sign in to follow this  
Followers 0
MiserableLife

Needed more detail on /ErrorStdOut

1 post in this topic

#1 ·  Posted (edited)

Can someone give me some more detail on 'AutoIt3.exe /ErrorStdOut Script.au3', somthing like how to check its return on stdout.

This is how I think it works:

1. clear Console

2. ConsoleWrite FilePath (line) : ==> ErrorText.: @CRLF

3. Exit

Make error:

$run = Run('"' & @AutoItExe & '" /ErrorStdOut /AutoIt3ExecuteLine "Msgbox("','',@SW_HIDE,2)
ProcessWaitClose($run)
$stdout = StdoutRead($run)
StdioClose($run)
MsgBox(0,'',$stdout)

Is there another way to check for script errors?(maybe exit code?)

Thanks

Sorry.. Problem solved ,please delete this post.

Edited by MiserableLife

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