Win Mouse Native (Windows)
Native Windows mouse control (move, click, drag) via user32.dll. Use when the user asks you to move the mouse, click, drag, or automate pointer actions on Windows.
Latest: v1.0.0
Initial release with native Windows mouse control functionality.
- Provides deterministic mouse movement, clicking, and dragging via Win32 APIs.
- Includes PowerShell and batch script interface for moving and clicking the mouse.
- Supports relative and absolute positioning, as well as left, right, and middle button actions.
- Returns results as simple one-line JSON objects.
- For Windows systems only; requires saving and running provided scripts.
Win Mouse Native
Provide deterministic mouse control on Windows.
Commands (local)
This ClawHub bundle is docs + scripts-as-text (ClawHub validates “text files only”).
To install:
- Save
win-mouse.cmd.txtaswin-mouse.cmd - Save
scripts/win-mouse.ps1.txtasscripts/win-mouse.ps1
Then run:
win-mouse move <dx> <dy>(relative)win-mouse abs <x> <y>(absolute screen coords)win-mouse click left|right|middlewin-mouse down left|right|middlewin-mouse up left|right|middle
Return value: prints a one-line JSON object.
OpenClaw usage
When the user asks to move/click the mouse:
- If the user didn’t give coordinates/deltas, ask.
- Use
execto runwin-mouse .... - Prefer small, reversible actions first (tiny move, single click) when unsure.
Notes
- Windows only.
- Uses Win32
SetCursorPos+SendInputvia user32.dll.
