← 返回
开发者工具 中文

Handsfree Windows Control

Guide skill for controlling native Windows apps (UIA) and web browsers (Playwright) via the handsfree-windows CLI. Use when you need to automate or test desk...
通过 handsfree-windows CLI 控制原生 Windows 应用 (UIA) 和 Web 浏览器 (Playwright) 的指导技能。适用于自动化或测试桌面应用。
lijinlar
开发者工具 clawhub v1.3.0 1 版本 99840.1 Key: 无需
★ 0
Stars
📥 1,249
下载
💾 43
安装
1
版本
#automation#browser#desktop#latest#openclaw#playwright#testing#uia#windows

概述

Handsfree Windows Control

A guide skill for automating native Windows apps (UIA) and web browsers (Playwright)

via the handsfree-windows CLI.

First use: auto-setup

On first use, run setup before issuing any other commands:

python scripts/setup.py

This will:

  1. Clone handsfree-windows from GitHub into ~/.handsfree-windows/cli/ (public repo, read-only)
  2. Install it via pip install -e (standard pip editable install)
  3. Install Playwright + Chromium browser binaries (~200 MB one-time download from cdn.playwright.dev)
  4. Run check_setup.py to verify everything is working

To skip browser installation (browser-* commands will not work):

python scripts/setup.py --no-browser

To install to a custom directory:

python scripts/setup.py --install-dir "C:\your\preferred\path"

Already installed? Verify anytime:

python scripts/check_setup.py

What is written to disk (transparent)

  • CLI source code: ~/.handsfree-windows/cli/ (or --install-dir)
  • pip editable link: standard site-packages egg-link (pip managed)
  • Browser persistent profiles: ~/.handsfree-windows/browser-profiles//

Contains cookies and login sessions. Delete to reset browser auth.

  • Browser session state: ~/.handsfree-windows/browser-state.json (last visited URL)
  • Playwright browser binaries: ~\AppData\Local\ms-playwright\ (~800 MB, Windows)

To fully remove everything:

pip uninstall handsfree-windows -y
Remove-Item -Recurse -Force "$env:USERPROFILE\.handsfree-windows"

Core rules

  • Do not guess UI controls. Run hf tree or hf inspect first, then act on what is actually there.
  • Do not type credentials. Navigate to login screens; let the human complete auth.
  • Prefer UIA selectors (name + control_type) over raw coordinates.
  • Use drag-canvas only for canvas/ink surfaces (Paint, drawing apps, etc.).
  • For destructive actions (delete, submit, send), ask the human for confirmation first.

Workflow: Desktop app (UIA)

# Launch any installed app
hf start --app "Outlook"

# Find the window
hf list-windows --json

# Discover controls (no guessing)
hf tree --title-regex "Outlook" --depth 10 --max-nodes 30000

# Act on what was found
hf click --title "Outlook" --name "New mail" --control-type "Button"

# Inspect element under cursor
hf inspect --json

Workflow: Browser (Playwright)

# Open URL - login sessions saved in profile automatically
hf browser-open --url "https://example.com"

# Inspect page before acting
hf browser-snapshot --fmt text

# Act
hf browser-click --text "Sign in"
hf browser-type --selector "#email" --text "user@example.com"

# Verify
hf browser-screenshot --out result.png

Mixed macro (desktop + web in one YAML)

- action: start
  args:
    app: "My Desktop App"

- action: browser-open
  args:
    url: "https://app.example.com"
    headless: false

- action: browser-click
  args:
    text: "Get Started"

- action: sleep
  args:
    seconds: 1

Run with: hf run macro.yaml


References

  • Full command reference + selector schema: references/api_reference.md

版本历史

共 1 个版本

  • v1.3.0 当前
    2026-03-29 09:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,918
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,481
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,438