| Point at any control and get v2 code that targets it, #Include a Notify, ProgressBar or Triggers class instead of writing your own, and give your AI assistant a real AHK v2 debugger. | | You know the drill. You open Window Spy, hover over the button you need to click, and get… nothing useful. No ClassNN. No text. Just Chrome_RenderWidgetHostHWND1 staring back at you. 😑 So you fall back to a coordinate click. It works great. Until someone moves the window, docks the laptop or bumps the DPI to 125%. Then your script happily clicks on empty space. Or you’re building a GUI for the folks in accounting, and you’re writing the SAME Notify function, the same INI settings code and the same hotkey preferences window for the fifth time. Sound familiar? ❓ Here’s the thing: AutoHotkey v2 can reach almost anything on a Windows PC. The hard part isn’t the language. It’s finding the right element, and not reinventing the wheel every time you start a new .ahk file. So below is the v2 gear we use every day at the-Automator, most helpful first: inspectors and syntax writers that hand you working code, classes you can drop in your Lib folder and #Include, AI tools that actually understand v2, and the courses when you want to go deeper. Click Learn more on any one for the full rundown. Now on with the show… 😃 | | Inspectors and Syntax Writers: Point at It, Get v2 Code 🔍 | Stop guessing at ClassNN names and pixel coordinates. These look inside the window and write the targeting code for you. | | Tool | What it does for you | UIA Inspector Learn more → | Press a hotkey over any element and see its UIA properties, supported patterns and full tree path. A built-in macro recorder and Scintilla editor let you build and test UIA automation right there. Works on legacy Win32, UWP and Chromium-based apps, the ones Window Spy can’t see into. | UIA Tree Inspector Learn more → | Point at a button, menu or text box, press a hotkey, and get ready-to-run v2 code that finds that control by its properties instead of screen position. Optional AI (through your own OpenRouter key) writes the resilient version for you. Everything else works fully offline. | TextUnderMouse v3 Learn more → | A macro recorder that saves WHAT you clicked (“the Save button in the Save As window”), not where. Point at a checkbox, edit or list, pick the action, record a few steps, and you get one v2 script that runs the whole task, even after the window moves. | Win32 Control Syntax Writer Learn more → | Inspect classic Win32 controls in real time and get exact v2 syntax to click, send text or read data. Test the snippet on the spot during inspection, then copy it into your script. | WinControlScraper Learn more → | Drag a crosshair onto any AHK GUI and it lists every button, edit, list, tab and label: ClassNN, position, size and visible text in one dark table. Highlight a control on the live window, double-click for a ready-to-paste ControlGetText snippet, or copy the lot as Markdown for Claude. | ClickGrabber Learn more → | Watches where you click and spits out v2 syntax to repeat those clicks. Window mode keeps the coordinates relative to the window, so it still works when the program moves. | AutomateMyTask Learn more → | For the apps with nothing to inspect: capture a pixel pattern on a visual grid, tell it what to do when it finds it, and export v2 code. A friendlier way to handle the ImageSearch kind of job without doing pixel math by hand. | Ultimate Spy Learn more → | The whole inspection bench in one download: 13 tools including Acc Viewer, COM Inspector, CLSID Registry Scanner, FindText, UIA Viewer, UIA Tree Inspector, WinSpy, ClickGrabber, the Win32 Syntax Writer and Old Menu Syntax Writer. If you automate a lot of different programs, start here. |
| | Tip: Try UIA first, even on apps you think are “old.” If UIA Inspector can see the element, your script will survive moved windows and DPI changes. Fall back to Win32 controls next, and pixel patterns only when nothing else works. 😊 |
| | Drop-In v2 Libraries and Classes 📚 | Save it to your Lib folder, #Include it, and stop writing the same plumbing in every script. | | Tool | What it does for you | Descolada’s UIA Library for v2 Learn more → | Descolada’s UIA.ahk (built on thqby’s UIAutomation work) plus UIA_Browser.ahk for Chrome, Edge and Firefox helpers like fetching URLs and switching tabs. If you’re doing UIA in v2, this is the library to #Include. | Triggers (Preferences Class) Learn more → | Let your users set their OWN hotkeys, hotstrings and mouse triggers. It stores and retrieves their choices and builds a tray menu showing what each trigger does. Perfect for tools you hand to coworkers who’ll never open the .ahk. | Notify Learn more → | Toast notifications with a TON of options: header and body fonts, colors and sizes, icons, sounds, callbacks, click-to-dismiss and hyperlinks. | DarkBox Learn more → | A dark-themed MsgBox replacement: custom button labels, optional icons, and it returns exactly which button was clicked. One self-contained .ahk file, zero dependencies. No more blinding white box in the middle of your dark GUI. | ProgressBar Learn more → | An animated, themeable busy overlay that centers on its parent GUI, blocks input while it’s up, and cleans up after itself. Your GUI stops looking frozen during API calls, file batches and FFmpeg runs, and users stop double-clicking. | Resizable GUI Learn more → | Plug-and-play resizing for v2 GUIs: controls reposition and scale automatically with minimal setup. | WinClip Learn more → | Put plain text, hyperlinks or HTML on the clipboard (and paste them) from v2. I use it dozens of times a day. | WatchFolder Learn more → | React the moment a file lands in a folder, without a polling loop. It uses the Windows kernel’s change notifications and waits until the file is fully written before handing it to you. Point it at a Downloads folder or scanner output and go. | FFmpeg Class Learn more → | FFmpeg behind readable method calls: video to audio, trim and split, burn or soft-mux subtitles, fades, concatenation, probing file info and mic recording. One #Include instead of hand-built command lines. | SQLite Class Learn more → | Isaias’ SQLite 3 interface object for v2. Real database storage for your scripts when INI files and CSVs stop cutting it. | Excel Function Library Learn more → | Automate Excel through COM from AutoHotkey without embedding macros or writing VBA. Ships in both v1 and v2 versions. | WebView2 Examples Learn more → | Example files for showing modern web pages inside an AHK v2 GUI with the WebView2 runtime. Grab them alongside the walkthrough video. |
| | Tip: Build your next coworker tool with Triggers for the hotkeys, Notify for status, DarkBox for questions and ProgressBar during the slow parts. It’ll look like a real app, and you won’t write any of that plumbing yourself. ⚡ |
| | AI in Your Scripts and Your Editor 🤖 | Put AI to work inside your AHK scripts, and make your AI assistant actually useful for writing v2. | | Tool | What it does for you | AutoHotkey v2 MCP Server Learn more → | Tired of AI writing v1/v2 soup and inventing functions? This Python MCP server plugs into Claude Code, Antigravity and other assistants so they can validate v2 syntax, run scripts with captured stdout, inspect the active window and see which libraries you already have on disk. | Claude Class Learn more → | The class behind many of our AI tools (AI with OCR, AI Transcribe and summarize). Call Claude from your own v2 scripts, including the “thinking” parameter. | OpenRouter Class Learn more → | One v2 library, many models: GPT, Claude, Llama and more through OpenRouter. Swap models without rewriting your API code. | ChatGPT API Class Learn more → | Our v2 class for the OpenAI API, for when your script needs to summarize, rewrite, classify or answer questions. | Error Capture Learn more → | Watches for AutoHotkey error and warning dialogs, logs the full error, copies it to your clipboard and shows a toast by the dialog. It can even auto-dismiss the box and jump you to Chrome, VS Code or Cursor, ready to paste to your AI. | AI Icon Creator Learn more → Browser version → | Retire the default green “H.” Type “a green rocket,” preview it at real tray sizes, and save a multi-resolution .ico tuned to stay sharp at 16×16, with a ready-to-paste TraySetIcon() line on your clipboard. Uses your own OpenRouter key. |
| | Research, Debug and Ship 🚀 | Find the registry key, test the RegEx, set up the debugger, and hand off a script that runs on a double-click. | | Tool | What it does for you | Registry Inspector Learn more → | A strictly read-only registry browser with snapshot/diff to see what an installer changed, and “Ask AI” to find a path when you only know what you want in plain English. Every value you view can be copied as a runnable v2 snippet. | WMI Explorer Learn more → | An 80+ query catalog of WMI in one window: hardware, drivers, services, installed programs, hotfixes. Live search and CSV export, so you know exactly which class and property to query from your script. | RegEx Recipes Learn more → | A v2 script full of ready-made patterns to create, test and learn from, so you can borrow a working RegExMatch instead of building one from scratch. | PackUp Learn more → | Reads your main script, recursively inlines every #Include (library-style and relative), and puts the combined script on your clipboard. Paste the FULL context into Claude or a forum post in one go. | VS Code Main Script Setup Learn more → | Pick your main v2 script and it writes the launch.json in your workspace’s .vscode folder, so breakpoints and debugging work without hand-editing JSON. | Associate AHK Learn more → | Double-click a .ahk and Notepad opens? This fixes the file association in one click, no admin rights needed, and it’s fully reversible. A lifesaver on locked-down work PCs. | Quick v1 to v2 Converter Learn more → | Select v1 code, press a hotkey, and see the v2 equivalent in an edit box you can tweak and copy back. Built on the community v1-to-v2 converter. It isn’t perfect, but it’s a solid head start on a migration. | IconMaker Learn more → | Type 1 to 3 characters, pick a font and colors, and export a crisp PNG or true Windows ICO. Batch mode turns out a whole matching set for a suite of compiled tools. |
| | Level Up: v2 Courses and the AHK Hero Club 🎓 | When you want to go deeper than copy-and-paste. Our v2 courses come with a 30-day double-your-money-back guarantee. | | Tool | What it does for you | Intro to AutoHotkey v2 Learn more → | 4+ hours on the basics of installing and using v2 to automate your Windows PC, where AutoHotkey fits in desktop automation and RPA, and how it compares to PowerShell and AutoIt. | GUIs Are Easier in AHK v2 Learn more → | Build the windows, forms and tools your coworkers will actually use. The course we point people to when they want to go from hotkeys to real GUIs. | Intermediate AutoHotkey v2 Learn more → | 5+ hours past the basics: controls, the Windows registry, five types of loops, Maps and Arrays, the various types of Send, SetTimer and INI files. | Intermediate Objects and Classes Learn more → | Objects and classes are the key to code that’s organized, maintainable and flexible, and to using the big classes (Chrome, WinClip, Rufaydium, ObjectCSV and more). 4+ hours. | v1 to v2 Transition Course Learn more → | For long-time v1 scripters: the syntax changes, renamed commands and new error behavior that trip people up, taught by an instructor with 10+ years of GUI experience. | Regex 101 Learn more → | Parsing and cleaning text is where most scripts get stuck. Learn character classes, grouping and the rest in bite-sized lessons. | AHK Hero Club Learn more → | Live office-hours calls where you bring your script and your questions, a private Telegram group, and 25% off tutoring, consultations and project work. A great way to get unstuck on a real work project. |
| One thing I’ve learned: you don’t need to rebuild your whole Lib folder this week. Pick ONE thing on this list that would have saved you an afternoon on your last script. Grab that. Then pick the next one. Every class you don’t have to write and every control you can target on the first try adds up fast. That’s more time automating the stuff that matters, and less time babysitting brittle scripts. That’s the real FREEDOM. How about you? What’s the one app you’ve NEVER been able to automate reliably? Drop me a note and tell me. I read every one. | | See All Our Tools | | the-Automator.com • Windows automation tools that give you your time back |
|