12 Favorite AutoHotKey Scripts You Can Use to Make Life Easier

Autohotkey Scripts Featured

AutoHotKey is one of the best Windows automation programs that can perform the simplest of actions to the hardest of tasks. AutoHotKey is a free and open-source program which uses its own scripting language to automate any of your daily Windows tasks. Even though the “scripting language” sounds intimidating, it is very easy to use, and you can do all sorts of cool things.

Let me share my favorite and most-used AutoHotKey scripts which make my daily tasks a little bit easier, and that may help you.

Before starting, it’s being assumed you already know how to install and configure AutoHotKey. Moreover, please note that the lines starting with ; are comments.

1. Google Search Shortcut

Google had the right idea when it turned the unloved and underused Caps Lock key into a dedicated search button that searched both your computer and Google. In the spirit of Chromebooks, you can turn the Caps Lock key into a Google Search key.

The following script will automatically search Google when you highlight a bit of text and press Ctrl + Shift + C:

2. AutoCorrect

In the time that Windows has existed, smartphones have evolved immeasurably to the point that they now have touchscreens and autocorrect built in. So why not have autocorrect on Windows 10?

In Autohotkey’s repository of scripts, you can find an autocorrect script, which contains thousands of common spelling errors that most people can easily make, then automatically fixes them as you write/make them.

Here’s the link to download the script. Just press Ctrl + A to select everything in the script, then copy it to a Notepad file that you should then save as “AutoCorrect.ahk.”

3. Repurpose those Function Keys

Most of us hardly ever use the Function keys on our keyboard except for F2 (rename), F5 (refresh), and F11 (full screen in the browser). Using AutoHotKey, you can repurpose those unused functions to do a variety of things like launching web pages, launching programs, etc. For instance, I use the function keys to launch my most-used programs like Snagit, Sublime Text, Photoshop, Calculator, Thunderbird, etc.

To launch a program, simply use the script below. Don’t forget to replace the program path with your favorite program.

4. Open Webpages Quickly

Just like launching your favorite programs, you can create your own custom shortcuts to launch your favorite websites. For instance, I use Ctrl + Shift + T to launch MakeTechEasier. Use the following script to launch your favorite web page. Don’t forget to replace the web address with your favorite site.

Just like the one above, you can create you own shortcuts using a combination of Ctrl(^), Shift(+), Alt(!), and Win(#) keys.

5. Open Favorite Folders

Along with opening web pages and programs, you can also open your most-used folders with just a simple shortcut. For instance, most of us access the Downloads folder often, and to make it easier, we can use a simple script like the one below. You can customize the script to change the shortcut and the folder path according to your needs.

6. Move Up a Folder in File Explorer

When you are in a folder, you often need to move up one folder. In previous versions of Windows, the backspace key has done the job, but now the backspace key moves you back in history. This is useful to many, but I still hate to click on that little icon to move up a folder, so I use the below script to move up a folder by clicking the middle mouse button.

If you want to, you can also reconfigure the useless tilde (~) key on your keyboard to do the same action.


7. Adjusting Volume

Even though it doesn’t have any multimedia keys, I love my keyboard, but the lack of volume control buttons is a bit uncomfortable for me. So I use the following script to control the volume of my system.


8. Set Default State of Lock Keys

Using AutoHotKey, you can easily set the default or permanent state of the lock keys on our keyboard, e.g. set Caps Lock to be turned off, Num Lock to be turned on and Scroll Lock to be turned off. This simple script is so helpful, and even if you press them accidentally, the lock state won’t change.

9. Reconfigure Caps Lock

After turning off the Caps Lock, you might want to reconfigure it to act as the Shift key. To reconfigure the Caps Lock key, use the below script.

10. Empty Recycle Bin

You can use the below script to quickly empty the trash bin. This simple script saves me from using my mouse to do that same task.


11. Window Always on Top

Sometimes you just want a window to be always on top no matter which window you are working on or is in focus. For instance, when working on a spreadsheet, you might access the calculator app frequently, and having it on top of the spreadsheet is quite handy. Using AutoHotKey, you can easily do this with a single line of code.

The script was originally published by labnol.

12. Temporarily Suspend AutoHotKey

The shortcuts created using AutoHotKey may sometimes interfere with some programs. In those cases you can temporarily disable AutoHotKey using the below script. Of course, if you don’t want to use a shortcut, then simply right-click on the AutoHotKey icon in the taskbar and select the option “Suspend Hotkeys.”


As you can see, all the scripts shared above are basic but do make things easier. Besides the easy stuff, you can do all sorts of complicated things like automatically send emails, manage programs, automate certain Windows tasks, automatically correct spellings, etc.

I hope the above scripts help you. If you are using AutoHotKey, then do share your favorite scripts in the comments form below.

Vamsi Krishna 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.


  1. Of course then you have to memorize all these new hot keys.
    I find it much more convenient to just click on icons.

    1. Put 60 seconds on your time, sit down and memorize the most useful shortcut on your preferred browser (not from this article btw), it will shave off hours and hours to days to months of your life.

      Tip: I added two useful browser shortcuts to my side button of the mouse, so if you have one, that would be super useful.

      I can’t imagine myself functioning without any of shortcuts. Honestly, I’d be using computer extremely slow and tedious making it longer to get anything done.

      Do you have 60 seconds? We’ll see.

  2. For items number 3 and 5, the backslashes got stripped out of the code blocks.

    Item number 1: Well, I’ll be damned…you just provided a solution to a long-outstanding “problem” I’ve had with Pathfinder on macOS!! It never occurred to me to copy the full pathname of the highlighted file to the clipboard and then grab it from there to manipulate the file! Thanks!!

  3. For #6, we can press alt+up to move up a folder in File Explorer, can’t we?

    Thanks for the article!

  4. Great article!

    I would include as well this scripts https://github.com/JuanmaMenendez/AutoHotkey-script-Open-Show-Apps to

    – Open, restore or minimize any kind of Window’s and Chrome’s Apps
    – Switch between open windows of the same App pressing Alt + ` like in Mac OS.

  5. Maximize window dismissing titlebar to maximize operative space without fullscreen:

    WinGetActiveTitle , Title
    WinMaximize , %Title%
    WinSet , Style , ^0xC40000 , A
    WinMove , %Title% , , 0 , 0 , A_ScreenWidth , A_ScreenHeight

  6. My personal Template:

    ; NOMENCLATURE: ^ = Ctrl, ! = Alt, + = Shft, # = Win
    ; < = Use the left key of the pair. e.g. = Use the right key of the pair.

    >!Space:: AppsKey

    WinGetActiveTitle , Title
    WinMaximize , %Title%
    WinSet , Style , ^0xC40000 , A
    WinMove , %Title% , , 0 , 0 , A_ScreenWidth , A_ScreenHeight

    Winset, Alwaysontop, , A ; ctrl + space

    Suspend ; Win + scrollLock

    ; PATHS:
    +#!c:: Run c:\ ; C drive

    ; APPS:
    #!n:: Run notepad ; Notepad
    #!c:: Run C:\Windows\System32\charmap.exe ; Character map
    #!p:: Run mspaint ; Paint
    #!m:: Run C:\Windows\System32\msconfig.exe ; MS Config
    #!s:: Run C:\Windows\System32\services.msc ; MS Services
    #!r:: Run C:\Windows\System32\regedt32.exe ; Registry editor

    ^#!w:: Run C:\ProgramFiles(x86)\MicrosoftOffice\Word.exe ; Word
    ^#!e:: Run C:\ProgramFiles(x86)\MicrosoftOffice\Excel.exe ; Excel
    ^#!p:: Run C:\ProgramFiles(x86)\MicrosoftOffice\Powerpnt.exe ; PowerPoint


    ; GOOGLE:
    ^!i:: Run www.google.com/ ; Internet

    ^!t:: Run https://translate.google.com/ ; Translate
    ^!d:: Run http://www.wordreference.com/ ; Dictionary
    ^!l:: Run http://www.linguee.en/ ; Translate (Linguee)
    ^!p:: Run https://www.powerthesaurus.org/ ; Thesaurus (PowerThesaurus)

    ; MARKETS:
    ^!e:: Run www.ebay.com/ ; eBay
    ^!a:: Run https://www.amazon.com ; Amazon
    ^!w:: Run https://www.walmart.com ; Walmart
    ^!c:: Run https://craigslist.org ; Craigslist
    ^!l:: Run https://wholesaler.alibaba.com/ ; Alibaba

    ^!y:: Run www.youtube.com ; YouTube
    ^!f:: Run https://www.fotor.com/app.html#/editor ; Photo Editor Online

    ^!h:: Run http://gen.lib.rus.ec/ ; Open library (library genesis)
    ^!z:: Run https://b-ok.cc ; ZLibrary
    ^!s:: Run https://sci-hub.tw/ ; Science Hub
    ^!k:: Run https://katcr.co/ ; Kickass Torrents
    ^!q:: Run http://bookre.org/ ; BooksReader

    ; TOOLS:
    ^!n:: Run https://www.y2mate.com/en3 ; Youtube Mate
    ^!x:: Run https://www.ilovepdf.com/ ; PDF Online
    ^!c:: Run www.google.com/calendar/ ; Calendar
    ^!o:: Run https://documentcloud.adobe.com/ ; Adobe Cloud

    ^!j:: Run https://www.google.com/search?q=google+weather ; Weather
    ^!m:: Run www.google.com/maps/ ; Google Maps

    #+e:: Run https://mail.google.com ; Email (Gmail)
    #+o:: Run https://outlook.office365.com/mail/ ; Email (Outlook)
    #+w:: Run https://web.whatsapp.com/ ; Whatsapp

    ; NEWS:
    +!w:: Run www.washingtonpost.com/ ; Washington Post
    +!n:: Run http://www.nytimes.com/ ; New York Times

    #if GetKeyState( “-” , “.” )
    1:: Send {Alt}{t}{b}{h} ; Hand.
    2:: Send {Alt}{t}{b}{l} ; Select.
    3:: Send {Alt}{t}{c}{p}{enter} ; Pencil.
    4:: Send {Alt}{t}{c}{w}{enter} ; Typewriter.
    5:: Send {Alt}{t}{c}{l}{enter} ; Line.
    6:: Send {Alt}{t}{c}{r}{enter} ; Rectangle.

    #if GetKeyState( “Left” , “Right” )
    ‘:: Send {—} ; En-dash (short).
    .:: Send {>} ; Greater than.
    ,:: Send {!>^c:: SetNumLockState, On ; Numlock activation.
    >!>^x:: SetNumLockState, Off ; Numlock deactivation.

    #If GetKeyState(“NumLock”,”T”)

Comments are closed.