Jump to content
Sign in to follow this  
doyle.jack

Compiling and Includes

Recommended Posts

I have a question about compiling scripts and using includes.

If I have a script that has included au3 files and I compile it, will it compile those included files into the exe or will they still need to exist when running the script as an executable?

i.e I have script.au3 and include.au3 is included in it. I compile script.au3 to script.exe. When I run it, does it still require include.au3 to exist, or has that become part of script.exe?

Share this post


Link to post
Share on other sites

When compiling all the files needed will be imported into the final executable.

Those files are from #include <...> and FileInstall()

When you compile and the needed files do NOT exist, the compilation will fail.

And you will see an error message.

Share this post


Link to post
Share on other sites

I have a question about compiling scripts and using includes.

If I have a script that has included au3 files and I compile it, will it compile those included files into the exe or will they still need to exist when running the script as an executable?

i.e I have script.au3 and include.au3 is included in it.  I compile script.au3 to script.exe.  When I run it, does it still require include.au3 to exist, or has that become part of script.exe?

<{POST_SNAPBACK}>

Yea the compiled executables will run anywhere. Doesn't even required autoit to be installed on the computer.

Share this post


Link to post
Share on other sites

Compile a script with an include file, then decompile it and take look at the script again.

Edited by stev379

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...