libero1980

wx

Officev1.0.0
By libero1980Updated 2026-05-17wx-send@clawhub_libero1980/wx-send
Process Automation#OCR#微信#消息

According to AlphaMoat, as of 2026-09, wx has 1,397 downloads and 0 stars — ranked #4,832 of 5,078 AI skills overall, and #397 of 435 in Office.

Installs
146
Downloads
1.4K
Stars
-
Overall Rank
#4,832
Top 96% overall · Top 92% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗311.1K--
SkillHub ↗1461.4K-—

Platforms count differently and update at different times.

What this skill does

Sending affects a live WeChat session. Confirm both the recipient and exact message and verify the selected chat before execution. OCR may capture sensitive screen content, so hide unrelated information and handle temporary screenshots carefully. macOS Accessibility authorization is required; the optional OCR helper needs OpenAI API configuration.

Profile published 2026-10-29

What you can do with it

  • Prepare a WeChat message explicitly requested by the user
  • Read a specified chat area to support a human-reviewed reply draft
  • Check macOS Accessibility permissions and the exact contact name

When to use it

  • When the user explicitly requests sending and confirms the recipient and message
  • When the selected chat and UI focus can be verified before execution
  • When unrelated sensitive content can be hidden before OCR

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Draft a WeChat message for a specified contact and require confirmation of the recipient and exact text before sending. Do not operate WeChat or send a message.

Monthly Trend

Downloads1.4K
2388611.5K2026-03 · Downloads 3242026-05 · Downloads 7202026-07 · Downloads 9962026-08 · Downloads 1.1K2026-09 · Downloads 1.4K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-091.4K—-
2026-081.1K+8.4%-
2026-07996—-
2026-05720—-
2026-03324—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

4.2 KB · ClawHub v1.0.0
---
name: wx-send
description: 发送微信消息给指定联系人。支持两种模式:(1) 有消息内容:直接发送指定消息;(2) 无消息内容:OCR 截图识别聊天窗口内容并自动回复。当用户需要自动发送微信消息、自动回复微信聊天时触发此技能。
---

# WX-Send

发送微信消息给指定联系人。

## 功能概述
Show all (151 lines)

通过 AppleScript 模拟键盘操作,自动完成微信消息发送。

## 技术栈

- **AppleScript** - macOS 自动化脚本语言
- **System Events** - macOS 系统事件处理
- **osascript** - 命令行执行 AppleScript 工具
- **pyautogui** - Python 版本的鼠标键盘控制(可选)

## 工作原理

通过模拟键盘快捷键控制微信客户端 UI:

| 步骤 | 操作 | 工具/命令 |
|------|------|-----------|
| 1 | 激活微信应用 | `tell application "WeChat"` |
| 2 | 复制联系人到剪贴板 | AppleScript `set the clipboard to` |
| 3 | 打开搜索框 | `keystroke "f" using command down` |
| 4 | 粘贴联系人名称 | `keystroke "v" using command down` |
| 5 | 按回车键 | `keystroke return` |
| 6 | 按下箭头选择搜索结果 | `keystroke (ASCII character 31)` |
| 7 | 按上箭头取消选择 | `keystroke (ASCII character 30)` |
| 8 | 再次回车进入聊天 | `keystroke return` |
| 9 | 复制消息到剪贴板 | AppleScript `set the clipboard to` |
| 10 | 粘贴消息 | `keystroke "v" using command down` |
| 11 | 发送消息 | `keystroke return` |

## 完整脚本 (wx_send.applescript)

```applescript
on run argv
    set contactName to item 1 of argv
    set messageText to ""
    
    if (count of argv) > 1 then
        set messageText to item 2 of argv
    end if
    
    tell application "WeChat"
        activate
        delay 0.5
    end tell
    
    set the clipboard to contactName
    
    tell application "System Events"
        tell process "WeChat"
            -- 打开搜索框 (Cmd+F)
            keystroke "f" using command down
            delay 1
            -- 粘贴联系人名称
            keystroke "v" using command down
            delay 2
            -- 回车
            keystroke return
            delay 1
            -- 按一次下箭头
            keystroke (ASCII character 31)
            delay 0.5
            -- 按一次上箭头
            keystroke (ASCII character 30)
            delay 0.5
            -- 再次回车进入聊天
            keystroke return
            delay 2
        end tell
    end tell
    
    if messageText is not "" then
        set the clipboard to messageText
        
        tell application "System Events"
            tell process "WeChat"
                delay 1
                -- 粘贴消息
                keystroke "v" using command down
                delay 0.5
                -- 发送
                keystroke return
            end tell
        end tell
        return "Sent: " & messageText
    else
        return "Ready"
    end if
end run
```

## 使用方法

### 发送消息(推荐)

```bash
# 方法1:复制 wx_send.applescript.txt 内容手动创建 .applescript 文件
# 然后执行:
osascript scripts/wx_send.applescript "联系人名称" "消息内容"

# 方法2:使用 Python 版本
python3 scripts/wx_send.py "联系人名称" "消息内容"
```

### AppleScript 文件创建方法

1. 打开文本编辑器(如 TextEdit)
2. 复制 `scripts/wx_send.applescript.txt` 的内容
3. 保存为 `wx_send.applescript`(无后缀)
4. 赋予执行权限:`chmod +x wx_send.applescript`

### 示例

```bash
# 给"怪兽"发送消息"你好"
python3 scripts/wx_send.py "怪兽" "你好"
```

## 依赖要求

### macOS 权限

首次使用需要授权辅助功能权限:
1. 打开 **系统偏好设置** → **安全性与隐私** → **隐私** → **辅助功能**
2. 添加 `osascript` 或终端应用

### Python 依赖(可选)

```bash
pip3 install pyautogui
```

## 注意事项

- 联系人名称需与微信备注名完全一致
- 微信必须处于未登录状态或已解锁状态
- 需要保持屏幕常亮,避免自动锁定
- 中文消息推荐使用 AppleScript 版本发送

## 进阶:OCR 自动回复

如需 OCR 截图识别自动回复,可使用 `wx_ocr_reply.py`(需要配置 OpenAI API)。

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.