Jump to content

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?

Link to comment
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
 Share

  • Recently Browsing   0 members

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