weirddave

Console output from uncompiled script

5 posts in this topic

I can run a script from the cmd box just by typing the the name of the script, such as "MyScript.au3", but I don't get any output from consolewrite() commands. Google suggested I could pipe the output to more, but this:

MyScript.au3 | more

didn't work.

Any suggestions? I want to be able to see the line numbers when bugs crop up, but I also want to be able to see the consolewrite() output. If I compile, I get the output, but not line numbers.

Share this post


Link to post
Share on other sites



I created mystub.exe, put that and the test1.au3 file in the folder with autoit3.exe and nothing happens, I end up with a ready and waiting command prompt with no "hallo" being output.

Quote

 

C:\AutoIt>mystub.exe /AutoIt3ExecuteScript test1.au3

C:\AutoIt>

 

 

Share this post


Link to post
Share on other sites

Yes that could be the case since a default was changed since then not to allow to use an compiled script as stub.
Add this line to your stub to change that default and recompile the stub:

#pragma compile(AutoItExecuteAllowed, true)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

ah-ha! That works a treat, thankyou :) 

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