C:\Autohotkey\Autohotkey.ini
C:\Autohotkey\Script\hoge.ahk
C:\Autohotkey\Script\sub\sub1.ahk
C:\Autohotkey\Script\sub\sub2.ahk
C:\Autohotkey\Script\sub\sub3.ahk
--- C:\Autohotkey\Autohotkey.ini ---
Code:
autoexecute:
Gosub,hoge_init
return
#include Script\hoge.ahk
--- C:\Autohotkey\Script\hoge.ahk ---
Code:
hoge_init:
;MyScript Setting file hoge.ini
SplitPath,%A_ScriptFullPath%,OutFileName,OutDir,OutExtension,OutNameNoExt
HogeInifile = %OutDir%\%OutNameNoExt%.ini
return
#include sub\sub1.ahk
#include sub\sub2.ahk
#include sub\sub3.ahk
#1:: Gosub,sub1 ;sub1.ahk
#2:: Gosub,sub2 ;sub2.ahk
#3:: Gosub,sub3 ;sub3.ahk
I want to carry out the packaging of the hoge.ahk and to Include it from a higher rank simply.
I do not want to be influenced of my home. I want the specification method which can be completed only by hoge.
Moreover, as for hoge.ahk, in addition, to operate, even if it performs alone is good.
Current directory which hoge.ahk uses at least for itself if it is impossible I want the structure the hoge.ahk itself is decided to be in the name of .ini.
Quote:
It could be used multiple times and would change the script's working directory for the purpose of #Include and maybe FileInstall commands, but probably not for the execution of the script (which would still use SetWorkingDir).
I am sorry. Since it is idle, how to use FileInstal is not known well. I do not consider compile of a script.