dingtalk-gui-message

通过 macOS GUI 自动化给钉钉联系人发消息。使用 peekaboo + screencapture + Swift Vision OCR + cliclick 实现全流程自动化。触发词:钉钉发消息、给XX发消息、钉钉GUI、dingtalk message。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dingtalk-gui-message" with this command: npx skills add jacky-wzj/dingtalk-gui-message

钉钉 GUI 自动化发消息

通过 macOS 桌面 GUI 自动化,搜索钉钉联系人并发送消息。

前置条件

  • macOS(arm64, Retina)
  • 已安装钉钉桌面客户端(com.alibaba.DingTalkMac)
  • 已安装工具:peekaboo, cliclick, swift
  • 已授权:Screen Recording + Accessibility

用法

python3 scripts/send_message.py "联系人名" "消息内容"

登录处理

脚本自动检测钉钉是否需要登录:

  • 已登录 → 直接执行
  • 未登录 → 截取二维码,输出 {"needs_login": true, "qr_code": "路径"}
  • exit code: 0=成功, 1=失败, 2=需要登录

技术方案(4/13 + 4/23 验证通过)

截图策略(关键!)

场景工具理由
登录检测peekaboo image --app只截钉钉窗口,避免误识别其他窗口文字
OCR 导航screencapture -x全屏 Retina,能捕获 WebView 内容
二维码截图screencapture -x确保二维码可见

坐标换算(4/23 修正)

Retina 截图: 3024×1964 像素
逻辑分辨率: 1512×982
换算: 逻辑坐标 = 像素坐标 ÷ 2

双引擎 OCR

引擎用途
Swift Vision OCR文字精确坐标 → cliclick
qwen3.6-plus vision语义理解,确认操作结果

核心原则(踩坑总结)

  1. bundleId: 始终用 com.alibaba.DingTalkMac
  2. 中文输入: 只用 peekaboo paste --text --app bundleId
  3. WebView 点击: 用 cliclick,不用 peekaboo click
  4. 搜索词: 用名字前两个字,不用全名
  5. 窗口激活: osascript activate + peekaboo focus 双重保障

工具链

工具用途
peekaboopaste 中文、hotkey、press、窗口截图
screencapture全屏 Retina 截图(捕获 WebView)
Swift VisionOCR + 像素坐标
cliclick逻辑坐标点击
qwen-vl-max截图语义分析

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

钉钉日报自动提交

钉钉日报自动提交工具 - 定时自动提交工作日报到钉钉日志系统。适用于每日工作汇报自动化、定时提交日报、钉钉日志集成等场景。支持Python导入和命令行两种方式使用,可自定义接收人列表和定时任务。

Registry SourceRecently Updated
3160Profile unavailable
Coding

DingTalk CLI Auto

基于钉钉官方CLI工具dws,实现消息发送、日程管理、待办事项、通讯录查询及机器人消息自动化操作。

Registry SourceRecently Updated
850Profile unavailable
Coding

My Browser Control

基于Python实现的macOS浏览器自动化工具,可一键打开指定网址,支持Safari/Chrome浏览器。

Registry SourceRecently Updated
8280Profile unavailable
Coding

Nerve Bridge Skill

Bi-directional control of Trae via macOS AppleScript with built-in feedback mechanism. Use when needing to execute code/commands in Trae IDE and wait for com...

Registry SourceRecently Updated
6570Profile unavailable