Jump to content
Sign in to follow this  

Question about ConsoleWrite function

Recommended Posts


I'm trying to use ConsoleWrite to generate output in a compiled script. I've taken the sample code from the documentation:

Local $var = "Test"

ConsoleWrite("var=" & $var & @CRLF)

When I run it in the IDE I see the message displayed in the output window. However, if I compile the script, creating "ConsoleWriteSample.exe" and then run it from command.com, it does not generate any output.

Also, if I try to run "AutoIT3.exe ConsoleWriteSample.au3", I have the same problem.

Is the function supposed to work in compiled programs? If so, what am I doing wrong?

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