據 AlphaMoat 統計,截至 2026-10,Desktop Control (Windows) 累計下載 22,766 次、獲 15 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 1,248 位,在「開發程式設計」分類(1,069 個)中排名第 85 位。
列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。
| 平台 | 累計下載 | 星標 | 評論 |
|---|---|---|---|
| ClawHub ↗ | 1.4萬 | 12 | - |
| SkillHub ↗ | 2.3萬 | 15 | — |
各平台的計數口徑不同,統計時間不一致。
這個技能是做什麼的
技能可啟動與關閉程式、切換和調整視窗、模擬鍵鼠輸入、管理程序、控制 VSCode 並讀取剪貼簿。它在動作前設了三道確認:關閉可能未儲存的視窗、結束程序、傳送輸入都要先確認或先把目標視窗切到前臺。分發包裡的指令碼是 .ps1.txt,需改名 .ps1 後放進 scripts/ 目錄才能用。 剪貼簿與畫面可能含有私人資訊;僅讀取必要內容,操作前核對目標視窗。
資料釋出於 2026-10-29
可以用來做什麼
- 啟動程式、切換視窗並按快捷鍵完成重複操作
- 在 VSCode 裡安裝擴充套件或管理正在執行的程序
什麼時候用
- 需要在 Windows 桌面上復現人工操作時
- 要批次整理視窗或清理程序但擔心誤關時
示例提示詞
以下是根據技能文件生成的示例,不代表實際執行結果。
月度資料趨勢
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-10 | 2.3萬 | — | 15 |
| 2026-09 | 1.6萬 | — | 16 |
| 2026-08 | 1.5萬 | +3.2% | 16 |
| 2026-07 | 1.4萬 | +5.9% | 15 |
| 2026-06 | 1.3萬 | +5.3% | 13 |
| 2026-05 | 1.3萬 | — | 12 |
| 2026-03 | 9205 | — | 6 |
SKILL.md 原文
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
--- name: desktop-control description: Control desktop applications on Windows — launch, close, focus, resize, move windows, simulate keyboard/mouse input, manage processes, control VSCode, read clipboard, and capture screen info. Use when the user wants to interact with any running program, switch windows, type text, press shortcuts, open files in VSCode, manage running processes, or get system display information. --- # Desktop Control — Full Windows Application Control ## Publish-only note (ClawHub) This Publish package includes scripts as `.ps1.txt` because Publish only accepts text files. After download, rename each `*.ps1.txt` to `*.ps1` and place them in a `scripts/` folder to use the skill.
展開全部(共 345 行)收起
Control any desktop application on this Windows machine. Launch programs, manage windows, simulate input, control VSCode, and monitor processes — all via PowerShell scripts. ## CRITICAL: Script Location All scripts are located relative to this skill folder: ``` SKILL_DIR = ~/.openclaw/workspace/skills/desktop-control/scripts ``` When running scripts, always use the full path: ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/<script>.ps1" -Action <action> [params] ``` ## IMPORTANT: Safety Rules 1. **Before closing windows** — Ask user for confirmation if the window might have unsaved work 2. **Before killing processes** — Always confirm with user unless they explicitly asked to kill it 3. **Before sending input** — Make sure the correct window is focused first 4. **Clipboard** — Warn user if you are overwriting clipboard content --- ## Action Reference ### 1. Window Management (`app-control.ps1`) Manage application windows — launch, close, focus, resize, move, snap. #### List all visible windows ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action list-windows ``` Returns: PID, window title, position (X,Y), size (W×H), state (Normal/Minimized/Maximized) #### Launch an application ```powershell # By name (searches PATH and common locations) powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action launch -Target "notepad" # By full path powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action launch -Target "C:\Program Files\MyApp\app.exe" # With arguments powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action launch -Target "code" -Arguments "C:\Users\ibach\project" ``` #### Focus (bring to foreground) ```powershell # By window title (partial match) powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action focus -Target "Visual Studio Code" # By PID powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action focus -ProcId 12345 ``` #### Close a window gracefully ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action close -Target "Notepad" ``` #### Minimize / Maximize / Restore ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action minimize -Target "Visual Studio Code" powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action maximize -Target "Visual Studio Code" powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action restore -Target "Visual Studio Code" ``` #### Move a window ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action move -Target "Notepad" -X 100 -Y 200 ``` #### Resize a window ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action resize -Target "Notepad" -Width 800 -Height 600 ``` #### Snap a window (half-screen) ```powershell # Options: left, right, top, bottom, topleft, topright, bottomleft, bottomright powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1" -Action snap -Target "Notepad" -Position left ``` --- ### 2. Input Simulation (`input-sim.ps1`) Simulate keyboard and mouse input into any application. **IMPORTANT:** Always focus the target window FIRST using `app-control.ps1 -Action focus` before sending input. #### Type text ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action type-text -Text "Hello, World!" ``` #### Send keyboard shortcut ```powershell # Common shortcuts: Ctrl+S, Ctrl+C, Ctrl+V, Ctrl+Z, Alt+F4, Ctrl+Shift+P, Win+D powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action send-keys -Keys "Ctrl+S" powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action send-keys -Keys "Ctrl+Shift+P" powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action send-keys -Keys "Alt+Tab" ``` #### Send special keys ```powershell # Keys: Enter, Tab, Escape, Backspace, Delete, Up, Down, Left, Right, Home, End, PageUp, PageDown, F1-F12 powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action send-keys -Keys "Enter" powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action send-keys -Keys "F5" ``` #### Mouse click at coordinates ```powershell # Left click powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action mouse-click -X 500 -Y 300 # Right click powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action mouse-click -X 500 -Y 300 -Button right # Double click powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action mouse-click -X 500 -Y 300 -DoubleClick ``` #### Move mouse ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action mouse-move -X 500 -Y 300 ``` #### Scroll ```powershell # Scroll up (positive) or down (negative) powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action mouse-scroll -Clicks 3 powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1" -Action mouse-scroll -Clicks -3 ``` --- ### 3. VSCode Control (`vscode-control.ps1`) Control Visual Studio Code through the `code` CLI and extensions. #### Open a file ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action open-file -Path "C:\Users\ibach\project\main.py" ``` #### Open a file at a specific line ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action goto -Path "C:\Users\ibach\project\main.py" -Line 42 ``` #### Open a folder/workspace ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action open-folder -Path "C:\Users\ibach\project" ``` #### Open diff view ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action open-diff -Path "file1.py" -Path2 "file2.py" ``` #### List installed extensions ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action list-extensions ``` #### Install an extension ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action install-extension -ExtensionId "ms-python.python" ``` #### Uninstall an extension ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action uninstall-extension -ExtensionId "ms-python.python" ``` #### Open a new terminal in VSCode ```powershell # This focuses VSCode and sends Ctrl+` to toggle terminal powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action new-terminal ``` #### Open VSCode command palette ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action command-palette ``` #### Run a VSCode command by name ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1" -Action run-command -Command "workbench.action.toggleSidebarVisibility" ``` --- ### 4. Process Management (`process-manager.ps1`) Monitor and manage running processes. #### List running processes ```powershell # All processes powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action list # Filter by name powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action list -Name "code" # Top N by memory powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action list -SortBy memory -Top 10 ``` #### Get detailed process info ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action info -ProcId 12345 ``` #### Start a new process ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action start -Path "notepad.exe" -Arguments "C:\file.txt" ``` #### Kill a process (CONFIRM WITH USER FIRST) ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action kill -ProcId 12345 powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action kill -Name "notepad" ``` #### Monitor process resource usage ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1" -Action monitor -ProcId 12345 -Duration 10 ``` --- ### 5. Screen & System Info (`screen-info.ps1`) Get display information, window details, clipboard, and screenshots. #### List displays/monitors ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action displays ``` #### Get active (focused) window info ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action active-window ``` #### Get detailed window info ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action window-info -Target "Visual Studio Code" ``` #### Take a screenshot ```powershell # Full screen powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action screenshot -OutputPath "$HOME/screenshot.png" # Specific window powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action screenshot -Target "Notepad" -OutputPath "$HOME/notepad-screenshot.png" ``` #### Read clipboard ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action clipboard-get ``` #### Set clipboard text ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action clipboard-set -Text "Text to copy" ``` #### Get system info (uptime, OS, resolution) ```powershell powershell -ExecutionPolicy Bypass -File "$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1" -Action system-info ``` --- ## Common Workflows ### Open a file in VSCode and navigate to a specific line ``` 1. vscode-control.ps1 -Action goto -Path "C:\path\to\file.py" -Line 42 ``` ### Type something into a specific application ``` 1. app-control.ps1 -Action focus -Target "Notepad" 2. input-sim.ps1 -Action type-text -Text "Hello World" ``` ### Save the current document in any app ``` 1. app-control.ps1 -Action focus -Target "<app name>" 2. input-sim.ps1 -Action send-keys -Keys "Ctrl+S" ``` ### Arrange two windows side-by-side ``` 1. app-control.ps1 -Action snap -Target "Visual Studio Code" -Position left 2. app-control.ps1 -Action snap -Target "Chrome" -Position right ``` ### Kill a frozen application ``` 1. process-manager.ps1 -Action list -Name "frozen-app" (note the PID) 2. ASK USER FOR CONFIRMATION 3. process-manager.ps1 -Action kill -ProcId <pid> ``` ### Take a screenshot of a specific window ``` 1. screen-info.ps1 -Action screenshot -Target "Chrome" -OutputPath "$HOME/chrome.png" ``` --- ## Error Handling - If a script returns exit code 0 → success - If a script returns exit code 1 → error (check stderr output for details) - If a window is not found → try `list-windows` first to get the exact title - If `code` CLI is not found → VSCode may not be in PATH; try launching it first ## Troubleshooting - **"Window not found"** → Use `list-windows` to see exact window titles, then match more precisely - **"Access denied"** → Some system processes need admin rights; inform the user - **Input not working** → Make sure the target window is focused AND in the foreground - **VSCode CLI not found** → Try `code --version` first; if missing, launch VSCode from Start Menu
「開發程式設計」分類下的熱門技能
【全棧能力】程式設計大神.Skill:面向複雜真實專案的高階全棧程式設計助手。不止生成程式碼,而是從一句目標接手陌生程式碼庫,拆解需求、補齊實現、追到根因、完成重構、聯調前後端,並把結果推進到能執行、能驗證、能交付。覆蓋 Web、後端、指令碼、iOS、安卓、鴻蒙 ArkUI、微信小程式及其他技術棧,支援中英文工程、疑難 Bug、跨模組任務和長任務續做;用構建、日誌、真實入口、裝置或介面證據說明結果。僅問概念時直接回答,要求落地時持續推進到驗收或明確阻塞。
程式設計專家 Pro:融合程式設計專家 2.0.3 工程專題與程式設計大神的鴻蒙 ArkTS/ArkUI、微信小程式和小遊戲開發資料。用於專案實現、根因除錯、審查、重構、測試、架構效能分析及多端開發驗證。支援自然語言和 @專題標識,按任務讀取包內知識;只問概念時直接回答。
程式設計專家.Skill P8級程式設計助手,25年實戰經驗技能Skill,全棧:Java/Php網站/軟體專案、API設計、Bug診斷、程式碼生成、程式碼審查、重構、測試用例、效能基準、技術選型、文件生成、任務拆解、Spec驅動、Karpathy規範、CMS二次開發、前端設計、MySQL/Mariadb、專案知識圖譜,以及工程紀律層(根因除錯硬閉環、階段導航、事故復盤/SLO、威脅建模/供應鏈安全、生產就緒/漸進式釋出、AI編碼治理、面向Agent程式碼可讀性、LLM應用安全)。支援 @標識 顯式呼叫跳過路由。
程式設計專家.Skill P8級程式設計助手,25年實戰經驗技能Skill,全棧:Java/Php網站/軟體專案、API設計、Bug診斷、程式碼生成、程式碼審查、重構、測試用例、效能基準、技術選型、文件生成、任務拆解、Spec驅動、Karpathy規範、CMS二次開發、前端設計、MySQL/Mariadb、專案知識圖譜,以及工程紀律層(根因除錯硬閉環、階段導航、事故復盤/SLO、威脅建模/供應鏈安全、生產就緒/漸進式釋出、AI編碼治理、面向Agent程式碼可讀性、LLM應用安全)。支援 @標識 顯式呼叫跳過路由。
程式設計專家 Pro:融合程式設計專家 2.0.3 工程專題與程式設計大神的鴻蒙 ArkTS/ArkUI、微信小程式和小遊戲開發資料。用於專案實現、根因除錯、審查、重構、測試、架構效能分析及多端開發驗證。支援自然語言和 @專題標識,按任務讀取包內知識;只問概念時直接回答。
程式設計專家 Pro:融合程式設計專家 2.0.3 工程專題與程式設計大神的鴻蒙 ArkTS/ArkUI、微信小程式和小遊戲開發資料。用於專案實現、根因除錯、審查、重構、測試、架構效能分析及多端開發驗證。支援自然語言和 @專題標識,按任務讀取包內知識;只問概念時直接回答。
程式設計專家.Skill P8級程式設計助手,25年實戰經驗技能Skill,全棧:Java/Php網站/軟體專案、API設計、Bug診斷、程式碼生成、程式碼審查、重構、測試用例、效能基準、技術選型、文件生成、任務拆解、Spec驅動、Karpathy規範、CMS二次開發、前端設計、MySQL/Mariadb、專案知識圖譜,以及工程紀律層(根因除錯硬閉環、階段導航、事故復盤/SLO、威脅建模/供應鏈安全、生產就緒/漸進式釋出、AI編碼治理、面向Agent程式碼可讀性、LLM應用安全)。支援 @標識 顯式呼叫跳過路由。
用 gh 命令列工具檢視 GitHub 上的 PR 檢查、工作流執行與 API 查詢的技能。
資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。