UIA Tree Inspector (AI-Assisted): AutoHotkey v2 UIA Code Generator

Watch the 1:11 UIATreeInspector demo

UIA Tree Inspector: Let AI Write Your AutoHotkey v2 UI Automation Code

Point at any button, menu, or text box in any Windows program and press a hotkey. Then hand that element to AI and get AutoHotkey v2 code that finds it by what it is, not where it sits on screen.

Updated on 2026/10/31 to Version: 1.1.0

Prefer to build the path yourself? The precise Macro / Path builder is right there too. 🤖

❓ Which UIA inspector do I need?

We get this question a lot. These are two separate tools. Neither one replaces the other, and most people only need one.

  • UIA Tree Inspector (this page, AI-assisted): grab an element and let AI (Claude, GPT, Gemini and more) write the code. The AI part uses your own OpenRouter API key.
  • UIA Inspector (no AI): you build the code step by step with anchors, a uniqueness check, Guide Mode, and live tracking. No API key, fully offline.

Want AI to do the heavy lifting? You’re in the right place. Rather skip AI entirely? Grab the other one. 😊

One-time $4.99. No license key. No activation. Just download and run.

This AI Feature in UI Inspector Changes Everything 🤖 You Need to See It

UIA Tree Inspector AI code generator video demo


Why Click-by-Position Scripts Break


Have you ever written a script that clicks by screen position? It works great… until the window moves. 😃

Digging through an app’s hidden control structure by hand is slow. And writing code that keeps working after the app updates? That’s a project in itself.

UIA Tree Inspector uses Windows’ built-in UI Automation (UIA) to see inside any program, every button, list, menu, and field. Then it writes the code for you.

Hover, Capture, Generate, Test


StepWhat You Do
1Hover your mouse over any control in any program.
2Press the capture hotkey (you can change it) to grab it.
3Review the element’s properties, patterns, and place in the tree.
4Generate code with AI or the path builder, then Test and Copy it.

How the AI Code Generator Works


A rigid path can break when an app rearranges its controls. The AI describes your element by its name, type, and properties instead.

The cool thing is you stay in control:

  • Pick the scope (full window or just a subtree) and the depth.
  • Pick the action you want performed.
  • Add plain-English instructions like “use a loop to click all matching items.”
  • Choose your AI model and hit Generate.

Don’t get me wrong, AI isn’t magic. That’s why there’s a Test button. 😊

Note: The AI feature connects through OpenRouter using your own free-to-create API key. Everything else in the tool works fully offline.

What’s Inside


  • See Inside Any Window: the full tree of controls in any program, even ones you can’t normally click into.
  • Grab the Element Under Your Mouse: one hotkey captures whatever your cursor is over. Change the key to anything you like.
  • Two Ways to Build Code: the Macro / Path builder for exact targeting, or the AI Code Generator for property-based code.
  • Test Before You Trust: run generated scripts in a separate process right from the window.
  • Inspect Every Detail: properties, supported UIA patterns, and the parent window’s info side by side. Right-click any value to copy it.

One Price, No Strings


Just $4.99. One time.

No license keys. No activation servers. No subscription. Download it, run it, done.

Rather build every line yourself, with no AI involved? Check out UIA Inspector (no AI).

Brought to you by the-Automator.com. Built on the open-source UIA-v2 library.

Comments are closed.