Install
openclaw skills install windows-automation-clawAutomate Windows desktop tasks by launching apps, capturing screenshots, and simulating mouse and keyboard actions via PowerShell and Python scripts.
openclaw skills install windows-automation-clawThis skill enables Windows desktop automation through integrated PowerShell and Python scripts. It provides capabilities for launching applications, capturing screenshots, and simulating mouse/keyboard interactions. This skill is ideal for RPA (Robotic Process Automation) scenarios, automated testing, repetitive task automation, and controlling Windows applications programmatically.
Application Control:
Screenshot:
Mouse Operations:
Keyboard Operations:
app_launcher.py)Execute application control operations through the app_launcher.py script.
Start an application:
python scripts/app_launcher.py start "C:\Program Files\Notepad++\notepad++.exe"
Open URL:
python scripts/app_launcher.py url "https://www.google.com"
List running processes:
python scripts/app_launcher.py list
Kill an application:
python scripts/app_launcher.py kill "notepad"
When to use:
screenshot.py)Execute screenshot operations through the screenshot.py script.
Capture full screen:
python scripts/screenshot.py screen "C:\Users\YourName\Desktop\screenshot.png" 0
Capture specific window:
python scripts/screenshot.py window "Notepad" "C:\Users\YourName\Desktop\notepad.png"
List all visible windows:
python scripts/screenshot.py list
When to use:
mouse_control.py)Execute mouse operations through the mouse_control.py script.
Move mouse to position:
python scripts/mouse_control.py move 500 300
Click at position:
python scripts/mouse_control.py click left 500 300 1
Drag and drop:
python scripts/mouse_control.py drag 100 100 500 500 1.0
Scroll:
python scripts/mouse_control.py scroll down 5
Get current mouse position:
python scripts/mouse_control.py position
When to use:
keyboard_control.py)Execute keyboard operations through the keyboard_control.py script.
Type text:
python scripts/keyboard_control.py type "Hello, World!"
Press single key:
python scripts/keyboard_control.py key enter
Press combination keys:
python scripts/keyboard_control.py combo ctrl c
Press hotkey:
python scripts/keyboard_control.py hotkey ctrl shift esc
When to use:
User Request: "帮我打开Chrome,打开一个表单页面,填写姓名和邮箱"
Execution Logic:
app_launcher.py start chromeapp_launcher.py url <form_url>mouse_control.py move to position cursor in name fieldkeyboard_control.py type to enter namemouse_control.py move to position cursor in email fieldkeyboard_control.py type to enter emailUser Request: "测试记事本应用,输入一些文字,截图保存"
Execution Logic:
app_launcher.py start notepadkeyboard_control.py type to input test textscreenshot.py window "Notepad"User Request: "自动打开Excel,输入一批数据到表格"
Execution Logic:
app_launcher.py start excelkeyboard_control.py combo ctrl okeyboard_control.py type to enter file pathkeyboard_control.py key enter to confirmmouse_control.py move or arrow keyskeyboard_control.py typekeyboard_control.py combo ctrl ssuccess, message, and optional data fieldssuccess field before proceeding with dependent operationsapp_launcher.py fails to start an app, check if the path is correctscreenshot.py fails, verify window title or check permissionsmouse_control.py operations don't work, check screen resolution coordinateskeyboard_control.py input is incorrect, verify key names are supportedmouse_control.py position to find current coordinatesLetter keys: a, b, c, ..., z Number keys: 0, 1, 2, ..., 9 Special keys: space, enter, tab, backspace, escape, delete, insert, home, end, pageup, pagedown Arrow keys: up, down, left, right Function keys: f1, f2, ..., f12 Modifier keys: ctrl, alt, shift, win
This skill includes four executable Python scripts for Windows automation:
app_launcher.py - Application launching and process managementscreenshot.py - Screen and window capture functionalitymouse_control.py - Mouse movement, clicking, and scrollingkeyboard_control.py - Keyboard input simulation and key combinationsNote: Scripts are executed without loading into context window for efficiency. Read them only when patching or debugging is needed.
Delete this directory if not needed. Currently contains placeholder references.
Delete this directory if not needed. Currently contains placeholder assets.