wechat-auto-reply
基于AI置信度智能判断,半自动或主动发送微信消息。
下载 5,470
通过视觉识别与窗口操作,实现微信消息自动发送。
openclaw skills install @noir-hedgehog/wechat-sender命令、参数、文件名以原文为准
Agent-Eye - 屏幕捕获服务
# 服务端
eye-server --port 8080 --region 0,0,1200,900
# Python Agent(需要配置 image key)
cd crates/eye
python -c "
from agent import Agent
agent = Agent(server_url='http://localhost:8080', interval=1.5, grid_size=100, show_mouse=True, region='0,0,1200,900')
agent.run()
"eye-server --port 8080curl http://localhost:8080/snapshot.png -o test.png图像理解功能由 OpenClaw 内置的 image 工具提供,无需额外配置 Agent-Eye。Agent-Eye 负责捕获屏幕截图,image 工具负责理解图像内容。
微信消息自动发送技能。可以灵活组合以下能力,但执行前需要先思考流程(checklist)。
| 能力 | 命令 | 说明 |
|---|---|---|
| 聚焦窗口 | peekaboo window focus --app "微信" | 聚焦微信窗口(某些app有防录屏限制,需要先聚焦) |
| 调整窗口 | peekaboo window set-bounds --app "微信" --x 0 --y 0 --width 1200 --height 900 | 调整窗口位置和大小,避免防录屏限制 |
| 截图 | The-Eye: curl http://localhost:8080/snapshot.png 或 /usr/sbin/screencapture -R0,0,1200,900 | 建议用 The-Eye 获取实时截图 |
| 图像理解 | image tool | 分析截图内容,查找联系人位置 |
| 切换联系人 | peekaboo hotkey --keys "shift,down" --app "微信" | 模拟 shift+↓ 切换选中联系人 |
| 粘贴文字 | peekaboo paste --text "{message}" --app "微信" | 复制文字到剪贴板并粘贴 |
| 发送消息 | peekaboo hotkey --keys "cmd,return" --app "微信" | 模拟 cmd+return 发送消息 |
| 搜索联系人 | peekaboo hotkey --keys "cmd,f" --app "微信" | 推荐! 激活搜索框,比滑动列表快 |
使用 The-Eye 截图时:
--region 参数指定区域图像理解时的参考信息:
方式1:搜索(推荐)
peekaboo hotkey --keys "cmd,f" --app "微信" 激活搜索框peekaboo paste --text "联系人名字" --app "微信" 输入搜索词方式2:滑动列表
shift+up/down 切换联系人在执行每个操作前,先思考:
1. [ ] 聚焦微信窗口 + 调整大小
→ peekaboo window focus --app "微信"
→ peekaboo window set-bounds --app "微信" --x 0 --y 0 --width 1200 --height 900
2. [ ] 选择找联系人方式
→ 搜索(推荐):Cmd+F → 输入名字 → 点击结果
→ 滑动列表:shift+up/down
3. [ ] 获取截图(优先用 The-Eye)
→ curl http://localhost:8080/snapshot.png -o /tmp/wechat.png
4. [ ] 分析截图(视觉理解)
→ 使用 image tool,询问:
- 当前选中的联系人是谁?
- 目标联系人在列表第几个?
- 界面是否有异常?
5. [ ] 发送消息
→ peekaboo paste --text "消息内容" --app "微信"
→ peekaboo hotkey --keys "cmd,return" --app "微信"
6. [ ] 确认发送成功
→ 截图 + image tool 确认消息气泡出现- The-Eye 实时流:适合需要鼠标坐标的场景
- 直接截图:适合只需要静态界面的场景
- 如果搜索没结果,尝试滑动列表
- 如果切换失败,可以重新截图确认状态
- 如果发送失败,尝试重新聚焦窗口
发送"最近怎么样"给"宝宝星":
方式1:搜索(推荐)
方式2:滑动列表
eye-server --port 8080 + eye agent start已收录 1 个 Skill