Environment Variable AHKLIBPATH

Propose new features and changes
pidgay
Posts: 16
Joined: 21 Aug 2017, 02:32

Environment Variable AHKLIBPATH

15 Jan 2023, 04:16

Code: Select all

A_ScriptDir "\Lib\"  ; Local library.
A_MyDocuments "\AutoHotkey\Lib\"  ; User library.
"directory-of-the-currently-running-AutoHotkey.exe\Lib\"  ; Standard library.
When using 'Local library',
There is a disadvantage that file and directory structures are forced.
Scripts must exist in the path that has the "Lib" subfolder.

When using 'User library',
There is a disadvantage of being combined with the library of other projects.
I want to keep libraries that use only certain projects separately.

When using 'Standard library',
I have to do something cumbersome and unnecessary like having to copy the executable file separately to a specific project path and then run it.

Code: Select all

#Include A_LineFile\..\core\Lib\MyLib.ahk ; bad
#Include <MyLib> ; good
I don't want to use dirty methods
It is a cumbersome task that needs to be modified whenever the file structure in the project changes.

I wish I could add a libpath as an environmental variable AHKLIBPATH like LIBPATH in VC++.

Code: Select all

set AHKLIBPATH=X:\MyProject\core\Lib

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 18 guests