據 AlphaMoat 統計,截至 2026-09,wx 累計下載 1,397 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 4,832 位,在「辦公效率」分類(435 個)中排名第 397 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 31 | 1090 | - | - |
| SkillHub ↗ | 146 | 1397 | - | — |
各平台的計數口徑不同,統計時間不一致。
傳送會影響真實微信會話,執行前必須確認收件人和完整訊息內容,並核對當前選中的聊天視窗。OCR 可能捕獲螢幕上的敏感資訊;使用前關閉無關內容,並謹慎處理臨時截圖。 需要 macOS 輔助功能授權;可選 OCR 輔助需配置 OpenAI API。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 1397 | — | - |
| 2026-08 | 1080 | +8.4% | - |
| 2026-07 | 996 | — | - |
| 2026-05 | 720 | — | - |
| 2026-03 | 324 | — | - |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
--- name: wx-send description: 发送微信消息给指定联系人。支持两种模式:(1) 有消息内容:直接发送指定消息;(2) 无消息内容:OCR 截图识别聊天窗口内容并自动回复。当用户需要自动发送微信消息、自动回复微信聊天时触发此技能。 --- # WX-Send 发送微信消息给指定联系人。 ## 功能概述
通过 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)。
透過 MCP 在騰訊文件裡新建、編輯與管理線上文件的完整操作手冊。
在保留公式、格式和活頁簿結構的前提下建立、檢查或編輯 Excel 檔案。
處理 Word 與 DOCX 文件的作業指南,著重維持樣式、編號與版面。
透過命令列存取 Gmail、日曆、Drive、Contacts、Sheets 與 Docs。
PDF和圖片文字提取 將文件文字、表格與掃描頁識別整理為文字結果。
按主題與風格自動生成 PPT 檔案的技能。
透過 kdocs-cli 操作金山文件雲文件的官方技能。
用自然語言指令改 PDF 指定頁的小工具。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。