闲社服务运行正常AI智能体自动化平台
m

鼠标键盘控制

技能标识:mouse-keyboard

Control mouse and keyboard on Mac using cliclick. Use when you need to automate clicking, typing, or controlling the mouse cursor.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

鼠标键盘控制

鼠标与键盘控制

使用 cliclick 工具在 Mac 上实现鼠标/键盘自动化。

工具

exec

使用 exec 运行 cliclick 命令。

可用命令

  • - c:X,Y - 在坐标 X,Y 处点击
  • c:~100,~200 - 在相对位置点击
  • w:500 - 等待 500 毫秒
  • t:hello - 输入hello
  • kd:cmd - 按下 Command 键
  • ku:cmd - 松开 Command 键
  • p:return - 按下回车键
  • p:space - 按下空格键
  • p:tab - 按下 Tab 键
  • m:X,Y - 移动鼠标到 X,Y
  • dp - 双击
  • rc:X,Y - 在 X,Y 处右键点击

常见工作流程

在指定位置点击

bash cliclick c:500,300

输入文本

bash cliclick t:Hello World

点击并输入

bash cliclick c:500,300 && cliclick t:username

键盘快捷键

bash cliclick kd:cmd ku:cmd # 按下 Command 键

移动并点击

bash cliclick m:100,100 && cliclick c:100,100

获取坐标

使用 cliclick p 打印当前鼠标位置,或使用 macOS 截图工具(Shift+Cmd+4)获取坐标。

注意事项

  • - 坐标基于屏幕(0,0 为左上角)
  • 对于更复杂的键盘操作,使用 osascript
  • 结合 sleep 进行时间控制

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mouse-keyboard-1776097096 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mouse-keyboard-1776097096 技能

通过命令行安装

skillhub install mouse-keyboard-1776097096

下载

⬇ 下载 mouse-keyboard v1.0.0(免费)

文件大小: 1.24 KB | 发布时间: 2026-4-14 13:57

v1.0.0 最新 2026-4-14 13:57
Initial release — automate Mac mouse and keyboard using cliclick.

- Enables click, double-click, right-click, type, key down/up, and key press actions at specified coordinates.
- Supports both absolute and relative positions for mouse actions.
- Provides tools to execute custom cliclick command sequences and combine actions (e.g. click + type).
- Includes usage instructions, common workflows, and tips for obtaining screen coordinates.
返回顶部