7 posts in this topic
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?
What command would I use to open the following folder directories for:
Computer/This PC (windows 7/Windows 10)
Run("Explorer.exe " & $filepath) ShellExecute($filepath) can be used to open folder locations when you type in the full directory such as "C:\Users\%username%\Documents" but I'm trying to figure out how to use these windows short paths.
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 :-)
Is there possibility to do it like this?
Cause as I see compiler doesn't see If statement in case of #include functions.
It includes these two files all time.
If $var == True Then #include 'func/funcsByTabs/main_Moda.au3' Else #include 'func/funcsByTabs/main_Others.au3' EndIf