Page 1 of 1

;@Ahk2Exe-AddResource LIB looking for standard lib

Posted: 06 Oct 2017, 10:37
by scsnake
I often use ahkmini/ahkthread with some #include inside the dynamic script. For example:

Code: [Select all] [Download] GeSHi © Codebox Plus

#persistent
ahkmini("
(
#include <testlib>
msgbox
)"
)


If I want to compile for a single usable executable, I have to let the compiler include testlib in the resource. That is:

Code: [Select all] [Download] GeSHi © Codebox Plus

;@Ahk2Exe-AddResource LIB FULL/PATH/TO/testlib.ahk


Using modified Directive_AddResource function inside the Compiler/Directives.ahk, along with ListIncludes.ahk, the compiler will looking for non-full-path library in Compiler/../Lib . Wish somebody help refine it and may be HotKeyIt will adapt this idea ~

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus