Hi,
As I understand it, the user library is located at %A_MyDocuments%\AutoHotkey\Lib\. How can I change that to a different location?
Thanks!

How to change location of user library?
Started by
redgum
, Oct 26 2012 11:18 PM
5 replies to this topic
#1
-
Posted 26 October 2012 - 11:18 PM

If you call a function from a file that is not #Included, the script looks for it in 3 places.
See http://l.autohotkey....nctions.htm#lib
I don't think you can "change" the specific location you mentioned though.
See http://l.autohotkey....nctions.htm#lib
I don't think you can "change" the specific location you mentioned though.
#2
-
Posted 27 October 2012 - 03:38 AM

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org
Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.
You can create a hardlink using the mklink command line utility (Windows-built in). That way, you can make any directory appear in %A_MyDocuments%\AutoHotkey\Lib\.
#3
-
Posted 27 October 2012 - 12:21 PM

Join the discussion on The future of AutoHotkey
Visit me on github 
Win7 HP SP1 64bit | AHK_L U 64bit


Win7 HP SP1 64bit | AHK_L U 64bit
I was hoping to avoid that, but a symbolic link will have to do if that path is hardcoded in HotKey. I was hoping there was a registry key or AHK variable or something that I could set to redirect it...
I keep my scripts in a Dropbox folder, so that they're available on all my machines. I'd like to keep my library there too, to avoid multiple versions getting out of sync... A symbolic link solves that issue, but not the issue of having yet another app creating its own folder in My Documents. Oh well. Call me anal, but I like to be able to control what goes where on my PC.
I keep my scripts in a Dropbox folder, so that they're available on all my machines. I'd like to keep my library there too, to avoid multiple versions getting out of sync... A symbolic link solves that issue, but not the issue of having yet another app creating its own folder in My Documents. Oh well. Call me anal, but I like to be able to control what goes where on my PC.
#4
-
Posted 28 October 2012 - 03:50 AM

... but not the issue of having yet another app creating its own folder in My Documents.
AutoHotkey doesn't create the folder; you do (or don't). If you don't want to use the Lib folder in My Documents, you can use one of the other two libraries as MasterFocus noted.
#5
-
Posted 28 October 2012 - 04:27 AM

I am trying to do the same thing. I keep my personal AHK script in an AHK folder in dropbox and then add this into the main autohotkey script on the computers I use AHK on:
#include C:\Users\sheuchert\Desktop\Dropbox\AHK\SeanScripts.ahk
It would be nice to have this feature builtin but this is a decent workaround for me.
Hope that helps,
Sean
#include C:\Users\sheuchert\Desktop\Dropbox\AHK\SeanScripts.ahk
It would be nice to have this feature builtin but this is a decent workaround for me.
Hope that helps,
Sean
#6
-
Posted 08 November 2012 - 02:05 PM
