Win Mouse Native (Windows)
2026-03-28
新闻来源:网淘吧
围观:15
电脑广告
手机广告
Win Mouse 原生
提供确定性的鼠标控制于Windows。
命令(本地)
此 ClawHub 捆绑包是文档 + 脚本即文本(ClawHub 仅验证“文本文件”)。
安装方法:
- 将
win-mouse.cmd.txt另存为win-mouse.cmd - 将
scripts/win-mouse.ps1.txt另存为scripts/win-mouse.ps1
然后运行:
win-mouse move <dx> <dy>(相对移动)win-mouse abs <x> <y>(绝对屏幕坐标)win-mouse click left|right|middlewin-mouse down left|right|middlewin-mouse up left|right|middle
返回值:打印一个单行的JSON对象。
OpenClaw 使用方法
当用户要求移动/点击鼠标时:
- 如果用户没有提供坐标/差值,请询问。
- 使用
exec来运行win-mouse .... - 不确定时,优先采取小而可逆的操作(微小移动、单次点击)。
备注
- 仅限Windows系统。
- 使用Win32的
SetCursorPos+SendInput通过user32.dll实现。
文章底部电脑广告
手机广告位-内容正文底部


微信扫一扫,打赏作者吧~