Sign in to follow this  
Followers 0
macmvi

Error With Run & StdoutRead, StderrRead ...

4 posts in this topic

I'using the last beta version.

Trying this example from then AutoIT help I get error (called with wrong number of argument).

Is it a 'bug' of Beta or an undocumented change or my mystake ???

Thanks for your help :whistle:

; Demonstrates StdoutRead()

#include <Constants.au3>

$foo = Run(@ComSpec & " /c dir foo.bar", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

While 1

$line = StdoutRead($foo)

If @error Then ExitLoop

MsgBox(0, "STDOUT read:", $line)

Wend

While 1

$line = StderrRead($foo)

If @error Then ExitLoop

MsgBox(0, "STDERR read:", $line)

Wend

MsgBox(0, "Debug", "Exiting...")

Share this post


Link to post
Share on other sites



no error here!

i see you have the latest beta...Hmmmm

are you pressing

Tools > Beta Run

in SciTE?

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

you write I'm not using BETA RUN bud I tried bud even with that I had an error

Like this it works:

; Demonstrates StdoutRead()

#include <Constants.au3>

$foo = Run(@ComSpec & " /c dir foo.bar", @SystemDir, @SW_HIDE, 6)

While 1

$line = StdoutRead($foo)

If @error Then ExitLoop

MsgBox(0, "STDOUT read:", $line)

Wend

While 1

$line = StderrRead($foo)

If @error Then ExitLoop

MsgBox(0, "STDERR read:", $line)

Wend

MsgBox(0, "Debug", "Exiting...")

Thanks for your help.

Share this post


Link to post
Share on other sites

I tried both variations of your script with v.1.1.131 (beta)...both are working.

Briegel

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