AHK is an open-source scripting software for Windows that is used to automate repetitive tasks, remap keys, build small utility tools, etc. You create scripts that would do the tasks for you. It's an extremely lightweight app (~ 2MB RAM) and works on old and newer versions of windows.
- Download and install main program (one-time step) https://www.autohotkey.com
- Download a script (
.ahk) or copy-paste script content in a text file and then rename it with
- To run the script: Right-click ->
Run script. You can also run scripts by double-click or do right-click ->
- Bonus: you can right-click and
Compile scriptto make it a standalone
.exeprogram that would run without installing AutoHotkey software on a computer.
- Open startup folder: open
Win+Rand then write
- It'll open explorer at something like this path:
- Copy a script (
*.ahk) -> go to that
Startupfolder -> right-click and select
script_autorun_startup.vbsat startup folder. Make sure to put the correct path of your ahk scripts in that file first.
You can see all scripts here: https://github.com/GorvGoyl/Autohotkey-Scripts-Windows
alt+g to open selected text in the browser and do a google search or visit the site (if it's url). It's one of the most frequent scripts I use on a regular basis. Especially to quickly google some error from the terminal when programming. Works everywhere.
Assign a different shortcut:
To assign a different shortcut, replace
Alt+G) in the script with your desired key combo and run again. All running scripts can be found in the Windows tray menu.
To use a different browser instead of Microsoft Edge, Add its path instead of
C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe in the script.
This little script has been a game-changer for me. I don't like to carry a mouse around, and my HP laptop touchpad isn't much responsive, so I needed a better alternative to performing left-click. I realized I don't use the left
Win key as much, so I modified its action to do left-click instead (using left-thumb). Once you get the hang of it, I assure you you'll do clicks with godspeed.
I still needed the
Win key, so I replaced the rarely used
right Ctrl key as
Win → Mouse Left-click
Right-Ctrl → Win
Keeping your laptop constantly plugged in shortens the battery life!
If the battery is below 30% and the charger is not plugged in, it'll show a silent notification on the bottom-right corner to plug in the charger. Notification will pop up every few minutes until you take action.
And, if the laptop is charged and the charger is still plugged in, it'll show a silent notification on the bottom-right corner to remove the charger. Notification will pop up every few minutes until you take action.
ctrl+capslock to invoke a handy transform text menu on selected text e.g., convert text to UPPERCASE/lowercase/Title Case etc. Press
esc to close the menu.
If you don't use
capslock key much, you could replace it to show Windows switcher (e.g., Alt + Tab) instead. You'd still be able to turn on/off capslock with
Capslock → Alt+Tab
Shift+Capslock → Capslock
Windows has a shortcut (
ctrl+shft+n) to create an empty folder at the current location but not for creating a new file. So, I made a script to do exactly that. Use
ctrl+shift+m to create an empty text file (NewFile.txt) at the current folder location in file explorer.
ctrl+shift+p to open PowerShell with the current folder path in file explorer.
script: in-line calculator.ahk
Activate the calculator by
= then write your equation and finally type
= again to get the calculation result. Works everywhere.
# key at the end instead of
= to keep the equation and the result (output:
7*5+5 = 40).
See more info in README file.
alt+right-click to move a window without activating it.
Disable zoom when doing ctrl+scroll in Edge browser. To use different application, replace
Microsoft Edge with other application title in the ahk script.
Alt+Tab (Window switcher) when the mouse is on the left edge of the screen. Keep the mouse there to tab through the other windows.
ctrl+alt+p to pin/unpin current window at top. Super handy.
It shows the taskbar only when the
Win key is pressed; otherwise, it stays hidden.
👋 Got some sick ahk script you'd like to add to the list? Please edit here and submit your changes.