AutoHotkey — Turn Repetitive Tasks into Scripts, Trigger with One Key, Let Your Computer Work for You
एक शब्द में: Customize hotkeys, auto-type text, and control windows with a simple स्क्रिप्टिंग भाषा — the most powerful ऑटोमेशन उपकरण on Windows. ---## How Many of Your Daily Operations Are Mindless Repetition? Customer service reps type “Hello, please provide your order number in the प्रारूप DD-2025-XXXX so I can look it up for you” 50 times a day. Accountants log into financial software, click through five menus, and open the “Accounts Receivable Detail” report every day. Operations staff open a backend in the browser, capture data panels, and paste them into daily report spreadsheets. What these operations have in common: mindless repetition, no thinking required, yet they consume massive amounts of time. You wouldn’t learn Python programming just for these tasks. What you need is a simple script that executes automatically when you press a hotkey. Type
#n::Run Notepad, press Win+N, and Notepad pops up. Type::gm::yourname@gmail.com, and anywhere you typegmfollowed by a space, it automatically becomes your email address. AutoHotkey (AHK for short) is Windows’ automation scripting engine. It uses extremely simple syntax to define hotkeys (triggered by shortcuts) and hotstrings (type an abbreviation to expand into full text). It can simulate keyboard and mouse operations, control windows, read and write files, and call system APIs. From “type your email in one second” to “complete automated workflows,” it can handle it all. ---## What Can AutoHotkey Do?
1. Hotstrings: Type an Abbreviation, Auto-Expand to Full Text
This is AHK’s simplest and most practical विशेषता. Write one line in your AHK script:
::@@::yourname@gmail.com
Save and double-click to run. Now anywhere (WeChat, Word, web forms, code editors), type @@ followed by space or enter, and it automatically becomes yourname@gmail.com.
You can define a whole system of abbreviations:
;addr→ Your full mailing address;sig→ Your email signature (three lines);today→ Current date2025-05-13;tel→ Your phone number Type two characters and output an entire block — customer service scripts, code templates, contract templates, common replies. For anyone who writes a lot of repetitive text every day, this is like having an extra pair of hands.
2. Hotkeys: One Combination Executes a Series of Actions
A step beyond hotstrings. You can define: Ctrl+Shift+F → automatically search selected text in the current window → open Google Translate in the browser → paste the search term. The entire flow triggered by one hotkey. Or: Win+Alt+N → automatically open Notepad → paste clipboard contents → add a timestamp → save to today’s memo folder. What used to take five steps is now one key press.
3. Window Management: Control Windows Like Magnets
AHK can precisely control window position, आकार, and state:
- “Press Win+F1 to snap the current window to the left half”
- “Press Win+F2 to center the current window and set it to 1200x800”
- “Press Win+H to minimize the current window to the system tray instead of the taskbar” When used with multiple monitors, these window control scripts can make your workspace management unprecedentedly efficient.
4. GUI Automation: Simulate Mouse and Keyboard
AHK can simulate mouse movements, clicks, and keyboard input. It can even wait for a window to appear before executing actions. उदाहरण के लिए, you can write a script: “Open WeCom → wait for the window to load → click the third tab → find the ‘Daily Report’ button → click → enter today’s date.” The whole process runs hands-free. But नोट: GUI automation is affected by screen resolution and window position. If the interface changes, the script may need adjustment. Best suited for fixed, repetitive internal उपकरण operations.
5. Tens of Thousands of Ready-Made Scripts in the समुदाय
AHK has been around for over 20 years, and the समुदाय has accumulated a massive library of practical scripts. Can’t write one yourself? No problem — 99% of common needs have already been written and posted on the forums. From “toggle window always-on-top” to “screen color picker” to “quick search selected text,” go to autohotkey.com/boards or GitHub, copy-paste, and you’re good to go. ---## पेशेवर मीडिया और उपयोगकर्ता समीक्षाएं | | Source | Review | | |--------|--------| | | How-To Geek | “AutoHotkey is the most powerful Windows ऑटोमेशन उपकरण — and it’s पूरी तरह से मुफ्त” | | | | PCWorld | “If you spend more than 8 hours a day on a PC, learning AHK will pay for itself in a week” | | | | Lifehacker | “The ultimate उपकरण for customizing every aspect of your Windows experience” | |
वास्तविक उपयोगकर्ता क्या कहते हैं
“Used to work in customer service. The company’s CRM system required filling in a dozen fields manually, clicking one by one. I wrote an AHK script: Ctrl+1 fills in the standard opening, Ctrl+2 fills in the customer ID template, Ctrl+3 fills in the closing. Replying to 200 messages a day, AHK saved me about 3 hours of repetitive typing.” — Former Customer Service Rep, Zhihu “I do data analysis, frequently copying data from Excel into a browser backend for queries. Wrote an AHK script: select data → Ctrl+Shift+Q → auto-open the query page → paste → Enter → wait for results to load → screenshot and save. These steps used to take 30 seconds, now 5 seconds. Doing this 200 times a day saves 83 minutes.” — Data Analyst, V2EX “AHK has a सीखने की अवस्था. But you don’t have to learn everything. Just three things are enough: hotstrings (::abbreviation::full text), hotkeys (^j::), and the Send command. These three will serve you for life.” — Active AHK समुदाय Contributor, autohotkey.com/boards ---## तुलना with समान उपकरण | | आयाम | AutoHotkey | Espanso | PowerToys Keyboard Manager | Quick Macro | | |-----------|-----------|---------|---------------------------|-------------| | | Text Expansion | ⭐⭐⭐⭐⭐ Strong | ⭐⭐⭐⭐⭐ Specialized | ⭐⭐ Limited | ⭐⭐⭐ Supported | | | | Keyboard Macros | ⭐⭐⭐⭐⭐ Strongest | ⭐ समर्थित नहीं | ⭐⭐⭐ Basic remapping | ⭐⭐⭐⭐ Strong | | | | Window Control | ⭐⭐⭐⭐⭐ Powerful | समर्थित नहीं | ⭐⭐⭐ FancyZones | ⭐⭐ Limited | | | | GUI Automation | ⭐⭐⭐⭐ Supported | समर्थित नहीं | समर्थित नहीं | ⭐⭐⭐⭐⭐ Strongest | | | | Script Language | ⭐⭐⭐⭐ Simple but powerful | ⭐⭐⭐ YAML config | UI config | ⭐⭐⭐ Simple | | | | समुदाय Script Library | ⭐⭐⭐⭐⭐ Massive | ⭐⭐ Limited | None | ⭐⭐⭐ Available | | | | सीखने की अवस्था | ⭐⭐⭐ Needs syntax learning | ⭐⭐ Config only | Pure UI | ⭐⭐ Recording | | | | ओपन सोर्स | Yes | Yes | Yes | No (Closed) | | | | मूल्य | Free | Free | Free | Free/Paid | | चयन सलाह:
- Only need text expansion (abbreviation → full text) → Espanso (lighter than AHK, simpler config)
- Only need keyboard key remapping → PowerToys Keyboard Manager (graphical, no coding)
- Need mouse operation recording and replay → Quick Macro (recording and replay is most intuitive, but closed-source with ads)
- Need full Windows automation → AutoHotkey (learning has a cost, but the ceiling is highest) ---## डाउनलोड और इंस्टॉलेशन Guide
आधिकारिक डाउनलोड (Recommended)
AutoHotkey’s only आधिकारिक वेबसाइट is autohotkey.com: | | Version | डाउनलोड Address | Notes | | |---------|-----------------|-------| | | v2.0 (Recommended) | autohotkey.com | Current main version, cleaner syntax | | | | v1.1 (Legacy) | Same page, select v1.1 | Compatible with many old scripts, more समुदाय resources | |
Version advice: Beginners should start with v2.0. Although v1.1 has more समुदाय scripts, v2 is the future standard with more consistent and learnable syntax.
autohotkey.comis the only आधिकारिक साइट — नोट thatautohotkey.org,ahk.com, etc. are not official. The installer is small and clean, no bundled promotions.
5-Minute त्वरित शुरुआत
- Open autohotkey.com, डाउनलोड and install v2.0
- राइट-क्लिक on the desktop → New → AutoHotkey Script, name it
myscript.ahk - राइट-क्लिक this file → Edit Script, open with Notepad
- Enter the following two lines of test code:
; Hotstring: type gm followed by space to get your email
::gm::yourname@gmail.com
; Hotkey: press Win+N to open Notepad
#n::Run "notepad.exe"
- Save the file, double-click
myscript.ahkto run. A green H icon appears in the system tray indicating it’s running - Type
gmanywhere then press space → it becomes your email. Press Win+N → Notepad opens
Three Most Practical Starter Scripts
Script 1: Abbreviation expansion for common text
::@@::yourname@gmail.com
::;sig::Sincerely,\nJohn Doe\n2025-05-13
::;addr::100 Software Park Road, Nanshan District, Shenzhen, Guangdong
(\n means newline)
Script 2: One-click search selected text
^+g:: ; Ctrl+Shift+G
{
Send "^c" ; Copy selected text
Sleep 50
Run "https://www.google.com/search?q=" . A_Clipboard
}
Select any text → press Ctrl+Shift+G → automatically searches in browser Script 3: Quick window split
!Left::WinMove -8, 0, A_ScreenWidth//2 + 8, A_ScreenHeight, "A" ; Alt+Left
!Right::WinMove A_ScreenWidth//2, 0, A_ScreenWidth//2 + 8, A_ScreenHeight, "A" ; Alt+Right
Press Alt+Left to snap window to left half, Alt+Right to snap to right half
---## सामान्य प्रश्न
Q: Will AHK scripts be flagged as viruses by antivirus software?
A: Some antivirus software (especially overly sensitive free ones) may flag compiled .exe AHK scripts. This is because malware sometimes uses AHK for keyloggers and similar operations. Your normal scripts won’t have issues, but if you need to distribute them, it’s better to share plain .ahk scripts and let others run them rather than compiling to .exe.
Q: How to choose between AHK v1 and v2?
A: If you have existing v1 scripts in use, stick with v1. If you’re learning from scratch, choose v2. v2’s syntax is more like mainstream programming भाषाएं, more consistent and easier to understand. New समुदाय scripts and tutorials are increasingly favoring v2.
Q: How do I make AHK scripts run automatically at startup?
A: Put the .ahk file (or a shortcut to it) in the Windows startup folder: Press Win+R → type shell:startup → drag the script in. Or compile to .exe (राइट-क्लिक .ahk → Compile), then put the .exe in the startup folder.
---AutoHotkey is like having a tireless intern assistant — you set the rules, and it executes them faithfully, never needing lunch breaks or a salary.
Browse All Tools