fanyuantaier自动化与工作流

Wechatauto Replica

wechatauto-replica

专为微信 4.x Windows 客户端设计的自动化工具,通过本地数据库解密与 UI 混合驱动实现消息读取、导出及自动发送。

  • 后端
  • 测试 / QA
  • 运营
  • 自动化
  • 数据分析
  • 库/框架
  • Windows
  • 支持本地运行
wechatauto-replica 截图
社区热度
81 Stars
GitHub 收藏
最近活跃
2026/8/21
近 30 天还在更新
授权协议
APACHE-2.0
宽松协议

为什么值得关注

不是看 Star 排名,而是看它解决了什么问题、实际有没有用,以及方法为什么值得关注。

近 90 天

解决的问题

微信 4.x 客户端采用自研渲染架构,移除了标准的 UI 自动化可访问性节点,导致传统的基于 UIAutomation 的自动化工具(如 wxauto)完全失效。本项目解决了新版客户端无法进行自动化控制的痛点。

实际价值

提供了本地数据库解密读取、实时消息监听、朋友圈读取以及基于 UIA 与 OCR 混合驱动的消息发送功能。不过,发送操作仍依赖 GUI 界面,在系统锁屏时无法工作。

创新 / 差异化

创新性地通过内存扫描获取 SQLCipher 密钥以直接解密本地数据库,并通过动态修改 Weixin.dll 内存中的 Qt 辅助功能开关来重建 UIA 树,辅以 OCR 坐标定位作为兜底。

扩展潜力

提供了兼容旧版 wxauto 风格的 Python API,使现有自动化脚本能够以较低的迁移成本适配微信 4.x 架构,降低了开发者重新开发底层驱动的门槛。

为什么是现在

随着微信 4.x 版本的逐步普及和旧版客户端的淘汰,该项目在传统自动化方案失效的节点及时推出,填补了当前技术栈的空白。

社区活跃度

近 90 天新增 9 个 Issue、1 个 PR;窗口内抽取的 Issue/PR 样本中有 8 位 Issue 发起者、1 位 PR 贡献者,并发布 20 个版本。

维护者响应

窗口内 9 个 Issue 样本关闭率 11%,1 个 PR 样本合并率 0%。维护者评论样本仅覆盖该 Issue 样本的 100%,不足以可靠判断首次响应率与响应速度。

PR 样本 1 位贡献者20 次 ReleasePR 合并率 0% · 1 条窗口样本

核心亮点

  • 通过 SQLCipher 4 直接读取本地加密数据库
  • 支持聊天记录全量导出与实时消息监听
  • 集成 UIA 与 OCR 混合驱动实现自动发送

快速开始

安装方式、上手难度、开始步骤。

装在哪

本地运行

难不难

中等,需要一点配置

支持本地运行
  1. 01安装项目依赖库。
  2. 02确保微信客户端已登录,运行 Python 脚本通过 WeChatDB 类读取本地数据库。
  3. 03使用 quick_send 函数进行自动化消息发送。

更适合谁

  • 想在本机直接跑起来试用的开发者

更多介绍

wechatauto-replica 是一款针对微信 4.x Windows 客户端的自动化库。由于微信 4.x 采用了自绘 UI 渲染,传统的 UI 自动化工具无法获取控件树,本项目通过直接解密本地 SQLite 数据库实现消息读取,并利用 UIA 激活与 OCR 辅助实现自动化发送,从而绕过 UI 限制。

信息来源

每条信息都标注了状态与出处,可展开查看。

14 条 · 展开
  • capability tags

    已核验

    automation、data_analysis

    来源: admin_cms · cms editor · 2026/8/22

  • editor note

    已核验

    {"en":"This project addresses the breakdown of traditional automation tools caused by WeChat 4.x's self-drawn UI. It uses memory scanning for database keys and OCR-assisted drivers, making it suitable for developers needing deep data access or automated interactions.","zh":"该项目专门解决微信 4.x 客户端因自绘 UI 导致传统自动化工具失效的问题。它通过内存扫描获取数据库密钥并结合 OCR 辅助操作,适合需要深度数据分析或自动化交互的开发者。"}

    来源: admin_cms · cms editor · 2026/8/22

  • how to use

    已核验

    {"steps":[{"en":"Install the project dependencies.","zh":"安装项目依赖库。"},{"en":"Ensure the WeChat client is logged in, then run Python scripts using the WeChatDB class to access local databases.","zh":"确保微信客户端已登录,运行 Python 脚本通过 WeChatDB 类读取本地数据库。"},{"en":"Use the quick_send function to perform automated message sending.","zh":"使用 quick_send 函数进行自动化消息发送。"}],"installAt":"local","difficulty":"medium"}

    来源: admin_cms · cms editor · 2026/8/22

  • intro

    已核验

    {"en":"wechatauto-replica is an automation library for the WeChat 4.x Windows client. Since WeChat 4.x uses self-drawn UI rendering, traditional accessibility tools fail to retrieve the control tree. This project bypasses these limitations by decrypting local SQLite databases for message reading and employing a hybrid UIA-activation and OCR-fallback driver for automated sending.","zh":"wechatauto-replica 是一款针对微信 4.x Windows 客户端的自动化库。由于微信 4.x 采用了自绘 UI 渲染,传统的 UI 自动化工具无法获取控件树,本项目通过直接解密本地 SQLite 数据库实现消息读取,并利用 UIA 激活与 OCR 辅助实现自动化发送,从而绕过 UI 限制。"}

    来源: admin_cms · cms editor · 2026/8/22

  • 最新版本

    已核验

    v1.1.6.3

    来源: GitHub 官方接口 · latest_release=v1.1.6.3 · 2026/8/22

  • 许可证

    已核验

    Apache-2.0

    来源: GitHub 官方接口 · license.spdx_id=Apache-2.0 · 2026/8/22

  • needs api key

    已核验

    来源: admin_cms · cms editor · 2026/8/22

  • 一句话用途

    已核验

    {"en":"An automation library for WeChat 4.x Windows client, enabling message reading, history export, and automated sending via local database decryption and hybrid UI drivers.","zh":"专为微信 4.x Windows 客户端设计的自动化工具,通过本地数据库解密与 UI 混合驱动实现消息读取、导出及自动发送。"}

    来源: admin_cms · cms editor · 2026/8/22

  • 平台

    已核验

    windows

    来源: admin_cms · cms editor · 2026/8/22

  • 分类线索

    根据材料推断

    ai-apps

    来源: 项目说明文档 · hint=ai-apps · 2026/8/18

  • product forms

    已核验

    library_framework

    来源: admin_cms · cms editor · 2026/8/22

  • role tags

    已核验

    backend、qa、operations

    来源: admin_cms · cms editor · 2026/8/22

  • supports local

    已核验

    来源: admin_cms · cms editor · 2026/8/22

  • supports self host

    已核验

    来源: admin_cms · cms editor · 2026/8/22

根据分类、能力和适用角色匹配的其他已核验项目。