Func z009() If FileExists("search\009\009.au3") Then #include <search\009\009.au3> EndIf EndFunc This wont work... Is there any workarround for this or I should do it in a different way?
How do i add a path to a file in Include.
I want my script to get the udf in the same folder as the script/exe:
Include "@ScriptDir/udf.au3" can this be done?
I have recorded a gui installation and modified the au3 file as per my requirement.
But the problem is, whenever I try to compile the au3 file, I am getting a special character on top of the file.
Can you suggest how to resolve this as it is appearing everytime during compilation.
And also I am trying to include a au3 file which is separate folder so I am adding the <..\Library.au3> line.
It is able to pick that but in that file "Library.au3" there is a file install line.
FileInstall(".\SendMail.ps1", @ScriptDir & "\SendMail.ps1") Library.au3 is being used by many other codes in the previous folder..
But the current file is looking for the ps1 file in current folder.
So is there any option to tell the compiler to pick the dependent files relative to Library.au3 instead of the current code.
I have created an external au3 (a library of functions and vars) that is #included in a main script that i must compile.
I wish that the content of the library is not merged with the main script when compiling.
My goal is to keep the ability to modify the library even after the main exe is compiled and that these changes are effective when executing the exe.
I guess this is not possible using the standard #include method.
Is there a way to do that ?
thx a lot :-)
Hey AutoIT Community,
Just wanted to know if there is a way I can #include all *.au3 files in my script without having to #include each individual .au3 file. For instance, currently I have a laundry list of #includes like this:
Would there be a way I could include all of the files above or all .au3 file in a one liner? That way I do not have to burn up a bunch of lines of code for just my includes.... Your help is greatly appreciated...