r/AutoHotkey • u/cs_cast_away_boi • 26d ago
Meta / Discussion I supercharged GeekDude's CodeQuickTester for AHK V1!
I didn't know what flair to use because this isn't really an autohotkey script but rather a Windows application I made for Autohotkey.
Here is the screenshot of what it looks like.
Onto the post...
I write a lot of AHK v1 in CodeQuickTester and got tired of alt-tabbing to the help file and digging through old scripts. So I built a small tray native Windows app in C# that sits beside it. It's only active while CodeQuickTester is the active window and does nothing anywhere else. No AI, no network. Everything it inserts is always valid v1.
Honestly, in the age of AI, one is often tempted to just have it do everything. But there is a still a need for handwritten AHK because often you have to do things like a macro script where you're switching windows and clicking on certain controls within windows or moving windows to where you want them, etc. This tool easily lets you do that with integrated window/click detection by hotkey. No more pulling up windowspy or a million different tools. You literally aim your mouse at the highlighted region and it sends the exact AHK you need into CodeQuickTester! But that's not all, it has all autocomplete and docs lookup and even code snippets/search across all your scripts. It's fucken' awesome for V1. I optimized it for CodeQuickTester because it became my default editor since I always just want to test scripts without saving them first.
The tech stack is: C# / .NET / WPF.
NOTE: I shared it because i'm not sure how many people use V1/GeekDude's CodeQuickTester. I may consider making it open source so everyone who needs it can use it on their own scripts/setup.
Here is an AI summary of its main features.
✍️ Writing
- Fuzzy autocomplete for commands, functions, directives, keys, your own functions and the current script's variables. wwa finds WinWaitActive. Tab inserts a parameter skeleton you can Tab through.
- Live syntax hints: after a comma, the current parameter is underlined.
- Context-aware completions: running programs after ahk_exe, key names inside Send {…}, and Gui sub-commands and options.
- Closing pairs and auto-ce-aware indenting thatfollows your script's style.
- Line tools: select line or word, multi-match select, move lines with Alt+↑↓, duplicate, select blockboard.
🎯 Pickers that write the Press a hotkey and click something on screen to get ready-to-run v1 code:
- Window: WinActivate plus WinWaitActive
- Click: with the right CoordMode
- Color: PixelGetColor or a wait-for-color loop
- Control: ControlClick, ControlSend and friends
- Geometry: WinMove
- Key: captures a hotkey combo
- Chain mode: pick several things in a row and get one script block.
📚 Docs without leaving the editor
- A Docs card shows the help page for whatever the caret is on and updates as you move. e or by task ("wait for window", "read ini").
- Browse by category when you don't know what a command is called.
- One click inserts the syntax or the example.
🧠 Your own scripts as a knowledge base
- Search every line of every script you've written and insert a line or a whole block.
- Next-line suggestions: press Enter after a line you've written before and it suggests what usually cthe current window, too.
- Your own functions show up in autocomplete, with a one-key #Include.
🧩 Recipes with Tab stops
- Snippets for a script skeleton, a toggle timer, safe clipboard handling, a tray menu, a ListView GUI and more.
- Stops can be filled straight from a picker.
- Select some code and save it as a recipe; the Tab stops are guessed for you.
🩺 Nudges A background linter for common v1 mistakes:
- v2-style syntax pasted
- Sleep after WinActivate
- missing return
- unclosed #If
- undeclared globals
- …
Most nudges have a one-key fix (one undo step), and you can add your own regex rules.
🗂️ Docked card workspace
- Docs, Nudges, Tools, Recipes and My scripts arrange themselves in an automatic grid across the rest of your monitor.
- Drag cards to dock or f.
- One hotkey hides everything.
- When CodeQuickTester is maximized, the cards fold into a strip so no card covers code.