Darkbanner Posted February 18, 2015 Share Posted February 18, 2015 (edited) Hey guys, I tried to use /AutoIt3ExecuteScript on my compiled script today, as described in the AutoIt documentation (see below). I basically tried to execute an 2nd script with it: my1stscript.exe /AutoIt3ExecuteScript my2ndscript.au3 This executed the code of my1stscript.exe and not the code from my2ndscript.au3 Did I miss something or is this a bug? Run a script using another compiled script: Compiled.exe [/ErrorStdOut] /AutoIt3ExecuteScript file [params ...] Execute another AutoIt script file from a compiled AutoIt3 executable. Compiled.exe [/ErrorStdOut] /AutoIt3ExecuteLine "command line" Execute one line of code as with AutoIt3.exe above. This means that there is no need to have a copy of AutoIt3.exe in addition to the compiled file - the interpreter stub of the compiled file will replace it. So as long as there is at least one compiled script available, other AutoIt scripts can be run without the need to have AutoIt3.exe on the machine., either pre-installed or added via FileInstall.https://www.autoitscript.com/autoit3/docs/intro/running.htm Edited February 18, 2015 by Darkbanner Link to comment Share on other sites More sharing options...
Tekk Posted February 18, 2015 Share Posted February 18, 2015 Check out the #Pragma directive. Link to comment Share on other sites More sharing options...
Solution JohnOne Posted February 18, 2015 Solution Share Posted February 18, 2015 (edited) There is some #pragma directive you have to set to true, which is false by default, not sure which. EDIT: #pragma compile(AutoItExecuteAllowed, true) Edited February 18, 2015 by JohnOne Darkbanner 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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