How to start AutoHotKey on system boot? I moved my script into
"c:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.."
but nothing happened.
UPDATE: I added this and everyting works now:
How to start AutoHotKey on system boot? I moved my script into
"c:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.."
but nothing happened.
UPDATE: I added this and everyting works now:
Check the value of Startup in registry:
\\HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders
That's the right place you should put your script in.(And where you can change location of it)
Also if it's ahk file(s) you are putting, you should have already linked ahk files to be opened by AutoHotkey.
Update: run(win + r) or open in explorer address bar shell:startup / shell:common startup is another great way to open the right startup folder :)
Update, for win10: Open Task Manager (ctrl + shift + esc), switch to Startup tab, check the item corresponding to the one you put in the startup folder, if it's Disabled, right click it and Enable it.
I found another solution which may seem better that previous.
When I started to use AHK I created all .ahk files in one folder. However, I think, everyone does so. In this case it is very easy to run all these files with bat file. It like like this:
@echo off
cd f:/hotkeys
for /f %%f in ('dir /b /s .') do start %%f
Create a file with such content and put it in startup directory: Win+R > shell:startup. That's it.
The script was taken from here How to do something to each file in a directory with a batch script.