Page 1 of 1

Library Directory

Posted: 15 May 2017, 09:14
by Delta Pythagorean
I've had to constantly use #Include to include so many files into a script
or program and I think that could have been shrunk down by using the following command
and variable.

Code: Select all

/*
	In my opinion there should be a way to have AHK set the default library directory
	and use it into a variable for other commands/functions/expressions
*/

SetWorkingLibDirectory	/* The location of the files/dlls to call for the script directory.
	When setting the library folder it automatically calls those files.
	By default it can be set to just the scripts working directory, or A_ScriptDir
	The variable that I think should be associated with the library directory should be:
	A_LibDir
	Although I think anyone else should say what this command and/or variable should be.
*/

Re: Library Directory

Posted: 15 May 2017, 09:36
by guest3456

Re: Library Directory

Posted: 15 May 2017, 09:54
by nnnik
Yeah doesn't help with Objects at all - therefore completely useless to me.

Re: Library Directory

Posted: 15 May 2017, 10:09
by Delta Pythagorean
guest3456 wrote:are you aware of this?
https://autohotkey.com/docs/Functions.htm#lib
Yes I am aware, I'm just stating that this command and variable could be used for simplifying the script/exe.