Cwin
Description
Windows CLI that screenshots, clicks and types into any window without stealing focus, so an AI coding agent can drive a GUI while you keep working. Layers PostMessage, UI Automation and SendInput and picks the right one per app framework.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
cwin
A small Windows CLI that lets you (or an LLM coding agent like Claude Code) drive **any** visible window on a Windows 11 machine — screenshot it, click in it, send keys to it, resize and move it — **without stealing focus** in the common case. Built so an interactive session can have the agent iterate on a UI in one window while you keep working in another.
cwin list
cwin shot --title "MyApp" --out shot.png
cwin click --title "MyApp" --x 200 --y 150
cwin click --title "Calculator" --uia-id num7Button # XAML — UIA path, no focus
cwin keys --title "MyApp" --text "hello world"
cwin key --title "MyApp" --key S --mods Ctrl
cwin uia --title "MyApp" # discover element ids
cwin pos --title "MyApp" --anchor bottom-right # dock it out of the way
cwin background --title "MyApp" # drop to back of Z-order
cwin monitors # list displays
`cwin --help` lists every subcommand; `cwin --help` dives in.
Why
When a person and an LLM iterate on UI work — a WPF app, a Godot game, a web frontend in a browser, an Electron tool — every loop usually requires the human to take a screenshot, click somewhere, type something, and tell the model what happened. cwin lets the model do it directly. The hard constraint, and the reason this isn't a one-liner around `SendInput`, is **don't disrupt the user**: no focus theft, no cursor jerks, no popping windows in front of what they're typing into.
That constraint forces a layered strategy:
| layer | API | works on | steals focus? |
|---|---|---|---|
| post | PostMessage |
Win32, WPF, WinForms, Chromium/Electron | no |
| uia | UI Automation | XAML/WinUI/UWP, WPF, Chromium/Electr |
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI