Page 1 of 1

Compiled EXE still need library

Posted: 23 May 2017, 04:00
by scsnake
It seems to be a basic question but I can't find any answer. If I compiled the script (using AHK_H's compiler), the thread inside the EXE (ahkmini/ahkthread) still needs the library scripts. Is it possible for the threads to search for library scripts from those of the main exe?

Re: Compiled EXE still need library  Topic is solved

Posted: 23 May 2017, 13:53
by HotKeyIt
It does already do that but you have to include the script in your exe, it is not inluded automatically. I has to be saved in RESOURCES\LIB\MYLIBRARY.AHK, you can also use Ahk2Exe directive, see http://fincs.ahk4.net/Ahk2ExeDirectives.htm
E.g. ;@Ahk2Exe-AddResource LIB mylibrary.ahk

Re: Compiled EXE still need library

Posted: 23 May 2017, 20:19
by scsnake
That is very useful! Hope one day these directives can be integrated into SciTE.

Re: Compiled EXE still need library

Posted: 24 May 2017, 14:56
by HotKeyIt
Ahk2Exe is not part of SciTE, what would you expect to happen with these directives in SciTE?

Re: Compiled EXE still need library

Posted: 25 May 2017, 10:54
by scsnake
I mean maybe hotkey or tool to insert those directives conveniently~