WinMacBear Posted February 5, 2021 Share Posted February 5, 2021 (edited) 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 February 5, 2021 by WinMacBear Link to comment Share on other sites More sharing options...
JockoDundee Posted February 6, 2021 Share Posted February 6, 2021 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 comment Share on other sites More sharing options...
pseakins Posted February 6, 2021 Share Posted February 6, 2021 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 comment Share on other sites More sharing options...
JockoDundee Posted February 6, 2021 Share Posted February 6, 2021 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 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