{
  "schemaVersion": "1.0",
  "item": {
    "slug": "desktop-control-win",
    "name": "Desktop Control (Windows)",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Lexylent/desktop-control-win",
    "canonicalUrl": "https://clawhub.ai/Lexylent/desktop-control-win",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/desktop-control-win",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=desktop-control-win",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/app-control.ps1.txt",
      "scripts/input-sim.ps1.txt",
      "scripts/process-manager.ps1.txt",
      "scripts/screen-info.ps1.txt",
      "scripts/vscode-control.ps1.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/desktop-control-win"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/desktop-control-win",
    "agentPageUrl": "https://openagent3.xyz/skills/desktop-control-win/agent",
    "manifestUrl": "https://openagent3.xyz/skills/desktop-control-win/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/desktop-control-win/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Publish-only note (ClawHub)",
        "body": "This Publish package includes scripts as .ps1.txt because Publish only accepts text files.\nAfter download, rename each *.ps1.txt to *.ps1 and place them in a scripts/ folder to use the skill.\n\nControl any desktop application on this Windows machine. Launch programs, manage windows, simulate input, control VSCode, and monitor processes — all via PowerShell scripts."
      },
      {
        "title": "CRITICAL: Script Location",
        "body": "All scripts are located relative to this skill folder:\n\nSKILL_DIR = ~/.openclaw/workspace/skills/desktop-control/scripts\n\nWhen running scripts, always use the full path:\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/<script>.ps1\" -Action <action> [params]"
      },
      {
        "title": "IMPORTANT: Safety Rules",
        "body": "Before closing windows — Ask user for confirmation if the window might have unsaved work\nBefore killing processes — Always confirm with user unless they explicitly asked to kill it\nBefore sending input — Make sure the correct window is focused first\nClipboard — Warn user if you are overwriting clipboard content"
      },
      {
        "title": "1. Window Management (app-control.ps1)",
        "body": "Manage application windows — launch, close, focus, resize, move, snap.\n\nList all visible windows\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action list-windows\n\nReturns: PID, window title, position (X,Y), size (W×H), state (Normal/Minimized/Maximized)\n\nLaunch an application\n\n# By name (searches PATH and common locations)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action launch -Target \"notepad\"\n\n# By full path\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action launch -Target \"C:\\Program Files\\MyApp\\app.exe\"\n\n# With arguments\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action launch -Target \"code\" -Arguments \"C:\\Users\\ibach\\project\"\n\nFocus (bring to foreground)\n\n# By window title (partial match)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action focus -Target \"Visual Studio Code\"\n\n# By PID\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action focus -ProcId 12345\n\nClose a window gracefully\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action close -Target \"Notepad\"\n\nMinimize / Maximize / Restore\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action minimize -Target \"Visual Studio Code\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action maximize -Target \"Visual Studio Code\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action restore -Target \"Visual Studio Code\"\n\nMove a window\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action move -Target \"Notepad\" -X 100 -Y 200\n\nResize a window\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action resize -Target \"Notepad\" -Width 800 -Height 600\n\nSnap a window (half-screen)\n\n# Options: left, right, top, bottom, topleft, topright, bottomleft, bottomright\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action snap -Target \"Notepad\" -Position left"
      },
      {
        "title": "2. Input Simulation (input-sim.ps1)",
        "body": "Simulate keyboard and mouse input into any application.\n\nIMPORTANT: Always focus the target window FIRST using app-control.ps1 -Action focus before sending input.\n\nType text\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action type-text -Text \"Hello, World!\"\n\nSend keyboard shortcut\n\n# Common shortcuts: Ctrl+S, Ctrl+C, Ctrl+V, Ctrl+Z, Alt+F4, Ctrl+Shift+P, Win+D\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Ctrl+S\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Ctrl+Shift+P\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Alt+Tab\"\n\nSend special keys\n\n# Keys: Enter, Tab, Escape, Backspace, Delete, Up, Down, Left, Right, Home, End, PageUp, PageDown, F1-F12\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Enter\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"F5\"\n\nMouse click at coordinates\n\n# Left click\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-click -X 500 -Y 300\n\n# Right click\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-click -X 500 -Y 300 -Button right\n\n# Double click\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-click -X 500 -Y 300 -DoubleClick\n\nMove mouse\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-move -X 500 -Y 300\n\nScroll\n\n# Scroll up (positive) or down (negative)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-scroll -Clicks 3\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-scroll -Clicks -3"
      },
      {
        "title": "3. VSCode Control (vscode-control.ps1)",
        "body": "Control Visual Studio Code through the code CLI and extensions.\n\nOpen a file\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action open-file -Path \"C:\\Users\\ibach\\project\\main.py\"\n\nOpen a file at a specific line\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action goto -Path \"C:\\Users\\ibach\\project\\main.py\" -Line 42\n\nOpen a folder/workspace\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action open-folder -Path \"C:\\Users\\ibach\\project\"\n\nOpen diff view\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action open-diff -Path \"file1.py\" -Path2 \"file2.py\"\n\nList installed extensions\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action list-extensions\n\nInstall an extension\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action install-extension -ExtensionId \"ms-python.python\"\n\nUninstall an extension\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action uninstall-extension -ExtensionId \"ms-python.python\"\n\nOpen a new terminal in VSCode\n\n# This focuses VSCode and sends Ctrl+` to toggle terminal\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action new-terminal\n\nOpen VSCode command palette\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action command-palette\n\nRun a VSCode command by name\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action run-command -Command \"workbench.action.toggleSidebarVisibility\""
      },
      {
        "title": "4. Process Management (process-manager.ps1)",
        "body": "Monitor and manage running processes.\n\nList running processes\n\n# All processes\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action list\n\n# Filter by name\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action list -Name \"code\"\n\n# Top N by memory\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action list -SortBy memory -Top 10\n\nGet detailed process info\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action info -ProcId 12345\n\nStart a new process\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action start -Path \"notepad.exe\" -Arguments \"C:\\file.txt\"\n\nKill a process (CONFIRM WITH USER FIRST)\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action kill -ProcId 12345\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action kill -Name \"notepad\"\n\nMonitor process resource usage\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action monitor -ProcId 12345 -Duration 10"
      },
      {
        "title": "5. Screen & System Info (screen-info.ps1)",
        "body": "Get display information, window details, clipboard, and screenshots.\n\nList displays/monitors\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action displays\n\nGet active (focused) window info\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action active-window\n\nGet detailed window info\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action window-info -Target \"Visual Studio Code\"\n\nTake a screenshot\n\n# Full screen\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action screenshot -OutputPath \"$HOME/screenshot.png\"\n\n# Specific window\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action screenshot -Target \"Notepad\" -OutputPath \"$HOME/notepad-screenshot.png\"\n\nRead clipboard\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action clipboard-get\n\nSet clipboard text\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action clipboard-set -Text \"Text to copy\"\n\nGet system info (uptime, OS, resolution)\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action system-info"
      },
      {
        "title": "Open a file in VSCode and navigate to a specific line",
        "body": "1. vscode-control.ps1 -Action goto -Path \"C:\\path\\to\\file.py\" -Line 42"
      },
      {
        "title": "Type something into a specific application",
        "body": "1. app-control.ps1 -Action focus -Target \"Notepad\"\n2. input-sim.ps1 -Action type-text -Text \"Hello World\""
      },
      {
        "title": "Save the current document in any app",
        "body": "1. app-control.ps1 -Action focus -Target \"<app name>\"\n2. input-sim.ps1 -Action send-keys -Keys \"Ctrl+S\""
      },
      {
        "title": "Arrange two windows side-by-side",
        "body": "1. app-control.ps1 -Action snap -Target \"Visual Studio Code\" -Position left\n2. app-control.ps1 -Action snap -Target \"Chrome\" -Position right"
      },
      {
        "title": "Kill a frozen application",
        "body": "1. process-manager.ps1 -Action list -Name \"frozen-app\"\n   (note the PID)\n2. ASK USER FOR CONFIRMATION\n3. process-manager.ps1 -Action kill -ProcId <pid>"
      },
      {
        "title": "Take a screenshot of a specific window",
        "body": "1. screen-info.ps1 -Action screenshot -Target \"Chrome\" -OutputPath \"$HOME/chrome.png\""
      },
      {
        "title": "Error Handling",
        "body": "If a script returns exit code 0 → success\nIf a script returns exit code 1 → error (check stderr output for details)\nIf a window is not found → try list-windows first to get the exact title\nIf code CLI is not found → VSCode may not be in PATH; try launching it first"
      },
      {
        "title": "Troubleshooting",
        "body": "\"Window not found\" → Use list-windows to see exact window titles, then match more precisely\n\"Access denied\" → Some system processes need admin rights; inform the user\nInput not working → Make sure the target window is focused AND in the foreground\nVSCode CLI not found → Try code --version first; if missing, launch VSCode from Start Menu"
      }
    ],
    "body": "Desktop Control — Full Windows Application Control\nPublish-only note (ClawHub)\n\nThis 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.\n\nControl any desktop application on this Windows machine. Launch programs, manage windows, simulate input, control VSCode, and monitor processes — all via PowerShell scripts.\n\nCRITICAL: Script Location\n\nAll scripts are located relative to this skill folder:\n\nSKILL_DIR = ~/.openclaw/workspace/skills/desktop-control/scripts\n\n\nWhen running scripts, always use the full path:\n\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/<script>.ps1\" -Action <action> [params]\n\nIMPORTANT: Safety Rules\nBefore closing windows — Ask user for confirmation if the window might have unsaved work\nBefore killing processes — Always confirm with user unless they explicitly asked to kill it\nBefore sending input — Make sure the correct window is focused first\nClipboard — Warn user if you are overwriting clipboard content\nAction Reference\n1. Window Management (app-control.ps1)\n\nManage application windows — launch, close, focus, resize, move, snap.\n\nList all visible windows\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action list-windows\n\n\nReturns: PID, window title, position (X,Y), size (W×H), state (Normal/Minimized/Maximized)\n\nLaunch an application\n# By name (searches PATH and common locations)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action launch -Target \"notepad\"\n\n# By full path\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action launch -Target \"C:\\Program Files\\MyApp\\app.exe\"\n\n# With arguments\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action launch -Target \"code\" -Arguments \"C:\\Users\\ibach\\project\"\n\nFocus (bring to foreground)\n# By window title (partial match)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action focus -Target \"Visual Studio Code\"\n\n# By PID\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action focus -ProcId 12345\n\nClose a window gracefully\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action close -Target \"Notepad\"\n\nMinimize / Maximize / Restore\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action minimize -Target \"Visual Studio Code\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action maximize -Target \"Visual Studio Code\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action restore -Target \"Visual Studio Code\"\n\nMove a window\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action move -Target \"Notepad\" -X 100 -Y 200\n\nResize a window\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action resize -Target \"Notepad\" -Width 800 -Height 600\n\nSnap a window (half-screen)\n# Options: left, right, top, bottom, topleft, topright, bottomleft, bottomright\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/app-control.ps1\" -Action snap -Target \"Notepad\" -Position left\n\n2. Input Simulation (input-sim.ps1)\n\nSimulate keyboard and mouse input into any application.\n\nIMPORTANT: Always focus the target window FIRST using app-control.ps1 -Action focus before sending input.\n\nType text\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action type-text -Text \"Hello, World!\"\n\nSend keyboard shortcut\n# Common shortcuts: Ctrl+S, Ctrl+C, Ctrl+V, Ctrl+Z, Alt+F4, Ctrl+Shift+P, Win+D\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Ctrl+S\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Ctrl+Shift+P\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Alt+Tab\"\n\nSend special keys\n# Keys: Enter, Tab, Escape, Backspace, Delete, Up, Down, Left, Right, Home, End, PageUp, PageDown, F1-F12\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"Enter\"\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action send-keys -Keys \"F5\"\n\nMouse click at coordinates\n# Left click\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-click -X 500 -Y 300\n\n# Right click\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-click -X 500 -Y 300 -Button right\n\n# Double click\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-click -X 500 -Y 300 -DoubleClick\n\nMove mouse\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-move -X 500 -Y 300\n\nScroll\n# Scroll up (positive) or down (negative)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-scroll -Clicks 3\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/input-sim.ps1\" -Action mouse-scroll -Clicks -3\n\n3. VSCode Control (vscode-control.ps1)\n\nControl Visual Studio Code through the code CLI and extensions.\n\nOpen a file\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action open-file -Path \"C:\\Users\\ibach\\project\\main.py\"\n\nOpen a file at a specific line\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action goto -Path \"C:\\Users\\ibach\\project\\main.py\" -Line 42\n\nOpen a folder/workspace\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action open-folder -Path \"C:\\Users\\ibach\\project\"\n\nOpen diff view\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action open-diff -Path \"file1.py\" -Path2 \"file2.py\"\n\nList installed extensions\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action list-extensions\n\nInstall an extension\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action install-extension -ExtensionId \"ms-python.python\"\n\nUninstall an extension\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action uninstall-extension -ExtensionId \"ms-python.python\"\n\nOpen a new terminal in VSCode\n# This focuses VSCode and sends Ctrl+` to toggle terminal\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action new-terminal\n\nOpen VSCode command palette\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action command-palette\n\nRun a VSCode command by name\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/vscode-control.ps1\" -Action run-command -Command \"workbench.action.toggleSidebarVisibility\"\n\n4. Process Management (process-manager.ps1)\n\nMonitor and manage running processes.\n\nList running processes\n# All processes\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action list\n\n# Filter by name\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action list -Name \"code\"\n\n# Top N by memory\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action list -SortBy memory -Top 10\n\nGet detailed process info\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action info -ProcId 12345\n\nStart a new process\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action start -Path \"notepad.exe\" -Arguments \"C:\\file.txt\"\n\nKill a process (CONFIRM WITH USER FIRST)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action kill -ProcId 12345\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action kill -Name \"notepad\"\n\nMonitor process resource usage\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/process-manager.ps1\" -Action monitor -ProcId 12345 -Duration 10\n\n5. Screen & System Info (screen-info.ps1)\n\nGet display information, window details, clipboard, and screenshots.\n\nList displays/monitors\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action displays\n\nGet active (focused) window info\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action active-window\n\nGet detailed window info\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action window-info -Target \"Visual Studio Code\"\n\nTake a screenshot\n# Full screen\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action screenshot -OutputPath \"$HOME/screenshot.png\"\n\n# Specific window\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action screenshot -Target \"Notepad\" -OutputPath \"$HOME/notepad-screenshot.png\"\n\nRead clipboard\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action clipboard-get\n\nSet clipboard text\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action clipboard-set -Text \"Text to copy\"\n\nGet system info (uptime, OS, resolution)\npowershell -ExecutionPolicy Bypass -File \"$HOME/.openclaw/workspace/skills/desktop-control/scripts/screen-info.ps1\" -Action system-info\n\nCommon Workflows\nOpen a file in VSCode and navigate to a specific line\n1. vscode-control.ps1 -Action goto -Path \"C:\\path\\to\\file.py\" -Line 42\n\nType something into a specific application\n1. app-control.ps1 -Action focus -Target \"Notepad\"\n2. input-sim.ps1 -Action type-text -Text \"Hello World\"\n\nSave the current document in any app\n1. app-control.ps1 -Action focus -Target \"<app name>\"\n2. input-sim.ps1 -Action send-keys -Keys \"Ctrl+S\"\n\nArrange two windows side-by-side\n1. app-control.ps1 -Action snap -Target \"Visual Studio Code\" -Position left\n2. app-control.ps1 -Action snap -Target \"Chrome\" -Position right\n\nKill a frozen application\n1. process-manager.ps1 -Action list -Name \"frozen-app\"\n   (note the PID)\n2. ASK USER FOR CONFIRMATION\n3. process-manager.ps1 -Action kill -ProcId <pid>\n\nTake a screenshot of a specific window\n1. screen-info.ps1 -Action screenshot -Target \"Chrome\" -OutputPath \"$HOME/chrome.png\"\n\nError Handling\nIf a script returns exit code 0 → success\nIf a script returns exit code 1 → error (check stderr output for details)\nIf a window is not found → try list-windows first to get the exact title\nIf code CLI is not found → VSCode may not be in PATH; try launching it first\nTroubleshooting\n\"Window not found\" → Use list-windows to see exact window titles, then match more precisely\n\"Access denied\" → Some system processes need admin rights; inform the user\nInput not working → Make sure the target window is focused AND in the foreground\nVSCode CLI not found → Try code --version first; if missing, launch VSCode from Start Menu"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Lexylent/desktop-control-win",
    "publisherUrl": "https://clawhub.ai/Lexylent/desktop-control-win",
    "owner": "Lexylent",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/desktop-control-win",
    "downloadUrl": "https://openagent3.xyz/downloads/desktop-control-win",
    "agentUrl": "https://openagent3.xyz/skills/desktop-control-win/agent",
    "manifestUrl": "https://openagent3.xyz/skills/desktop-control-win/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/desktop-control-win/agent.md"
  }
}