Luckily I use a bat file for the symbolic link which can use env-vars which makes the pathing much easier ) which all of the files simply in Dropbox. #Include C:\Users\%A_UserName%\Dropbox\AutoHotKeyĪs of right now I'm using the annoying icon method ( and for some reason it was un-done on my laptop so I have to re-create the symbolic link, create the shortcut, update the icon to the correct one, etc. It explains how to perform common automation tasks such as sending Please read the QUICK-START TUTORIAL near the top of the help file. So feel free to customize it to suit your needs. Note: From now on whenever you run AutoHotkey directly, this script try out these hotkeys, run AutoHotkey again, which will load this file. and it launches a new Notepad window (or activates an existing one). launches a web site in the default browser. SAMPLE HOTKEYS: Below are two sample hotkeys. ahk file simultaneously and each will get its own tray icon. files as you want, located in any folder. can be launched simply by double-clicking it. ahk is associated with the program, which means that it launched when you run the program directly. This script has a special filename and path because it is automatically semicolon, such as this one, are comments. So the default code is something like ( If the installer even adds it to your Documents folder, just like the Libs folder isn't even created ):Ĭode: Select all IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a This makes the account name show up as aceco_000 ( under C:\Users ). Local ( which would make my name show as Acecool under C:\Users ) which is on your computer without sync, but you can convert to microsoft account after you create it this lets you keep the normal looking username but I've run into other issues using this method.Īnd the microsoft account type, which is your e-mail address and password with the option to set up a pin and image password for quicker login. So, Windows 8 - 10 lets you set up one of 2 types of user account. I have everything in my dropbox so that when I am on a new computer, I run a bat file and it performs certain tasks to set up the computer how I like it such as running registry tweaks, setting up symbolic links ( ie one of the AHK Lib folders to use my Dropbox AutoHotkey Libraries folder ), additional environment variables ( Shortcuts to annoying folder locations such as hosts, also for local dev server I work on ) Instead of a new shortcut for each pc, I just want to launch ahk.exe and be done with it after running my setup bat file ( which also copies the ahk script to documents which then loads from dropbox ) I try to keep everything as simple as possible, and I write code to simplify tasks, perform new setups, etc. My goal is to simplify things ie launch autohotkey.exe without setting up shortcuts to dropbox script, finding the right icon for shortcut, etc. I could always set it up so I only load the scripts inside of dropbox and use the current path, but that doesn't always seem to work properly, not to mention I want to run the EXE only and be done with it, not to mention the libraries still need to be symlinked to use includes. to ask if there is another way, or if A_UserName or something similar can be used in include so that I can run my scripts again. bat file during the setup process so that one name / path can always be used, but this should be fixed which is why I am asking for help here. Sure, I could make a symbolic link to link the current %USERNAME% in a. to use a variable for the computer username inside the include line, unfortunately AHK believes this to be 'bad' or 'scary', but A_UserName should be allowed ( since dynamically including files is also a no-go ).Īt the least there should be a dev mode which bypasses these 'security' rules so that AHK can, once again, be useful. Since Windows 10 sets up usernames such as aceco_000 instead of Acecool for Microsoft Accounts ( so settings can be synced ), I had to change my script loader ( documents autohotkey auto loader which points to dropbox autohotkey loader ) and sub-loader ( in dropbox ) which includes the hotkey files, etc. bat file in place for creating the library link. I have hit a bit of a snag now that I am looking to run AHK on more than one PC with a symbolic link.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |