weirddave Posted December 16, 2016 Share Posted December 16, 2016 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 16, 2016 Developers Share Posted December 16, 2016 Here is an explanation for this: Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
weirddave Posted December 16, 2016 Author Share Posted December 16, 2016 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> Link to comment Share on other sites More sharing options...
Developers Jos Posted December 16, 2016 Developers Share Posted December 16, 2016 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 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
weirddave Posted December 16, 2016 Author Share Posted December 16, 2016 ah-ha! That works a treat, thankyou Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now