Jump to content

Is this possible to include file A in file B only DLL way or any other way?


Recommended Posts

What I want to do is:

This is just for showing waht I want to do.

File A.au3:
#include <File B.au3>

File B.au3:
Functions 1
Functions 2
Functions 3

If I need to make it work everywhere I have to compile the file A to A.exe.

But I do not edit file A very often. Is there a way for me just compile B to like ...B.a3x then in file A #include <File B.au3> make it like include a DLL?

Only DLL will do the trick? I do not know how to make it as a DLL in autoit so is there any other way... or anyone can give an example please?

Thank you so much for reading!

 

 

Edited by WinMacBear
Link to post
Share on other sites
4 hours ago, WinMacBear said:

Is there a way for me just compile B to like ...B.a3x then in file A #include

From the help:

Quote

Other scripts can be included into an Autoit script using the #include command - these can be in either .au3 or .a3x format. The content of the included file is inserted into the script at the point of the #include command - in most cases this is the beginning of the script so that any variable or constant declarations within the included text are available to the rest of the script.

 

Code hard, but don’t hard code...

Link to post
Share on other sites
32 minutes ago, JockoDundee said:

From the help:

This doesn't answer OP's question. He wants to make changes to the included files without having to re-compile the primary file. The only way this can be achieved is by putting the includes in a DLL. So then the DLLs  can be updated without having to redistribute the primary file. I don't think this is possible in AutoIt., but someone may have a solution.

Phil Seakins

Link to post
Share on other sites
5 hours ago, pseakins said:

He wants to make changes to the included files without having to re-compile the primary file.

In that case, maybe he should consider using the interpreter with dynamically sourced a3x files.

Code hard, but don’t hard code...

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

    No registered users viewing this page.

×
×
  • Create New...