Jump to content

/AutoIt3ExecuteScript no longer working with compiled scripts?


Go to solution Solved by JohnOne,

Recommended Posts

Posted (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 by Darkbanner

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
  • Recently Browsing   0 members

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