Jump to content

Recommended Posts

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

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
  • Recently Browsing   0 members

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