Windows Desktop Automation
Paste the following prompt into your AI chat to install this skill:
Please install the @user_73205fea/windows-auto skill into your AI assistant by following the guide at https://skillhub.cn/install/skillhub.md.
About this skill
The Problem
Some Windows tasks live at the GUI layer: they require coordinate-based clicks, drags, scrolling, typing Chinese into a focused window, enumerating or switching windows, or capturing screen content and sending it to teammates. These workflows usually cannot be completed through file APIs or web interfaces alone. windows-auto provides a set of desktop-oriented scripts that split mouse, keyboard, window management, screenshotting, and file sending into composable steps.
How It Works
Core capabilities include:
- Mouse control:
scripts/mouse.pysupports moving, clicking, double-clicking, dragging, scrolling, and taking screenshots, which is useful for repetitive GUI operations. - Keyboard input:
scripts/keyboard.pysupports text entry, single keys, and hotkey combinations; Chinese input is handled through the clipboard, so the target window must already be focused. - Window management:
scripts/window.pycan list, find, focus, maximize/minimize, close, and move windows, making it easier to orchestrate multi-app workflows. - Screenshots and sending:
scripts/screenshot_powershell.pyuses PowerShell to call .NET'sSystem.Windows.FormsandSystem.Drawingfor zero-dependency screenshots, including full-screen, region, and multi-monitor capture;scripts/screenshot_and_send.pycaptures the full screen and prepares it for group chat;scripts/send_file.pycan send Word, PDF, images, and other files.
In practice, it is typically used by running scripts inside an automation workflow: confirm the window state and coordinates first, then invoke mouse, keyboard, or window scripts, and finally output results through screenshot or file-sending scripts. The reference notes also cover coordinate systems, common hotkeys, typical flows, and emergency stop methods.
Boundaries and Caveats
- Python screenshots and mouse workflows depend on
pyautoguiandpillow; PowerShell screenshots are suitable for environments where extra Python dependencies should be avoided. - Some actions, such as UAC prompts, may require administrator privileges.
- Chinese input relies on the clipboard, so unfocused target windows can receive input in the wrong place.
- If an operation goes wrong, move the mouse quickly to the top-left corner
(0,0)to abort automation.
Use Cases
- When testing a Windows desktop app, use fixed coordinates to click, drag, and scroll repeatedly to reproduce a defect.
- When handling multiple local app windows, find the target window, focus it, and run maximize or minimize actions.
- When diagnosing a GUI issue, capture full-screen, region, or multi-monitor output with zero dependencies, then send it to a group chat.
Best For
- Desktop QA engineers who need scripted mouse, keyboard, and window actions to reproduce UI issues.
- Windows tool maintainers who need to chain window focus, input, and file sending into a fixed workflow.
- Operations staff handling GUI incidents who need quick multi-monitor screenshots for a collaboration chat.
Related Skills
Turns files, references, or chat context into styled single-page HTML reports with built-in templates and preset themes.
An engineering-oriented email automation solution for batch sending, Jinja2 templates, attachments, scheduled sending, inbox monitoring, and rule-based auto-reply.
An engineering workflow for creating, editing, reviewing, analyzing, and image-converting .docx files using pandoc, docx-js, OOXML, and LibreOffice.
Pre-submission scanner for Word/PDF blind-bid files that checks margins, fonts, page numbers, and metadata against tender requirements and flags residual bidder identities.