返回顶部
w

wechat-send

Automate sending text messages in the macOS WeChat desktop app by controlling the UI via AppleScript and JXA. This is NOT a WeChat chat channel for OpenClaw — it controls the WeChat GUI on your Mac to send messages on your behalf. Use when: (1) user asks to send a WeChat message to someone, (2) notifying a WeChat contact, (3) batch messaging multiple contacts. Requires: WeChat for Mac installed, logged in, and window visible. macOS Accessibility permission granted to node. NOT for: reading or re

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
891
下载量
0
收藏
概述
安装方式
版本历史

wechat-send

# WeChat Send Send messages to WeChat contacts by automating the macOS WeChat desktop app. ## Prerequisites - WeChat for Mac installed and **logged in** - macOS **Accessibility permission** granted to `node` (System Settings → Privacy & Security → Accessibility) - WeChat window must be **open** (not minimized to dock) ## Usage Run the script: ```bash bash scripts/wechat_send.sh "<contact_name>" "<message>" ``` ### Examples ```bash # Send a simple message bash scripts/wechat_send.sh "Ryan" "你好!" # Send a longer message bash scripts/wechat_send.sh "Ellison" "明天下午3点开会,别忘了带文件" ``` ## How It Works 1. Activates WeChat and opens search (Cmd+F) 2. Types the contact name, selects the first result (Enter), closes search (Escape) 3. Clicks the message input field using JXA CGEvent mouse simulation 4. Pastes the message from clipboard (Cmd+V) and sends (Enter) ## Limitations - Contact name must **exactly match** a WeChat contact (first search result is selected) - Cannot send images or files (text only) - Cannot read incoming messages - WeChat window position affects click coordinates (auto-calculated from window bounds) - If the contact search returns wrong results, the message goes to the wrong person — use specific names - Only one message at a time; for multiple recipients, call the script multiple times ## Troubleshooting - **Message not sent**: Ensure WeChat window is visible (not minimized) and the correct contact was found - **Accessibility error**: Re-grant node permission in System Settings → Accessibility, then restart the gateway - **Wrong contact**: Use a more specific name to avoid ambiguous search results

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wechat-send-1776206987 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wechat-send-1776206987 技能

通过命令行安装

skillhub install wechat-send-1776206987

下载 Zip 包

⬇ 下载 wechat-send v1.0.0

文件大小: 2.93 KB | 发布时间: 2026-4-15 10:15

v1.0.0 最新 2026-4-15 10:15
Initial release: automate sending text messages via macOS WeChat desktop app using AppleScript and JXA

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部