How to Schedule AutoHotkey to Start Up with Windows

How to Schedule AutoHotKey to Startup with Windows

AutoHotkey is one of the best free applications for Windows for creating quick custom keyboard shortcuts and automating several Windows tasks. With all the custom AutoHotkey scripts you created, you sometimes need to launch a script automatically when you log in to Windows. Here is how you can schedule AutoHotkey to startup with Windows.

There are two ways to make a AutoHotkey script start up with Windows. The first is to add it to the Startup folder, and the other is to create a scheduled task. I will show both ways; follow the one you are most comfortable with.

Add AutoHotkey to the Startup Folder

The easiest way to start a AutoHotkey script on system startup is to add it to the Startup folder. To do that, press Win + R, paste the path shown below and press the Enter button.

%appdata%MicrosoftWindowsStart MenuProgramsStartup

The above action will open the user specific startup folder.. Right-click on the empty space, select the “New” option and then “Create Shortcut.”


In the “Create Shortcut” window click on the “Browse” button. Select your AutoHotkey script and click “Next” to continue.


In this screen enter the name of the shortcut, and click on the “Finish” button to complete the procedure.


Your custom startup item has been created. Whenever you start your system and log in, the AutoHotkey script will be automatically launched.


Note: if you want the AutoHotkey script to launch regardless of which user is logged in, then create the shortcut in the below folder. It is the Startup folder for all the users on your system.

%programdata%MicrosoftWindowsStart MenuProgramsStartup

Schedule AutoHotkey with Task Scheduler

If you want more control or if you want the script to start up with admin rights, then using the Task Scheduler is the best way to go. To launch the Task Scheduler, search for it in the start menu and open it.


Once the Task Scheduler has been opened, click on the option “Create Task” appearing on the right pane.


Here in this window under the General tab enter the name of the task, and select the radio button “Run only when user is logged on.” If you want the script to run with admin rights then select the checkbox “Run with highest privileges.”


Now, navigate to the Triggers tab and click on the “New” button to add a new trigger. In the “New Trigger” window, select the option “At log on” from the drop-down menu next to “Begin the task,” and make sure that the “Any user” radio button is selected. Click on the “OK” button to save the changes.


Once you are done setting up the trigger, this is how it looks in the main window.


Navigate to the Actions tab, and click on the “New” button appearing at the bottom of the window. In the Actions window click on the “Browse” button, and select the AutoHotkey executable from the “Program Files” folder. After that, enter the path to your AutoHotkey script in the Arguments field, and click on the “OK” button to save the changes.


Note: if you enter the AHK script path directly in the “Program or Script” field, Windows might not launch the script at system startup.

After setting up the Action, this is what it looks like.


Navigate to the Conditions tab and uncheck the “Start the task only if the computer is on AC power” checkbox. This ensures that the task will start even if you are using your system on battery.


Simply click on the “OK” button to save the scheduled task. If you want to test the task, select the task you just created, click on the “Run” option under the “Selected item” and it should start your AHK script.


Now whenever you log on to your machine, the AKH script will start automatically.


Do comment below sharing your thoughts and experiences about using the above method to schedule AutoHotkey script at system startup.

Vamsi Krishna

Vamsi is a tech and WordPress geek who enjoys writing how-to guides and messing with his computer and software in general. When not writing for MTE, he writes for he shares tips, tricks, and lifehacks on his own blog Stugon.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox