Skip to main content

A Python toolkit for automating WeChat tasks on Windows

Project description

wxautoz

基于 wxauto 的增强版本,添加了后台调度功能。

✨ 新增功能

后台读取聊天记录

最新更新 (2025.10.13): 成功实现后台阅读聊天记录功能

  • ✅ 无需前台显示窗口即可读取消息
  • ✅ 支持多种消息类型(文本、图片、文件、语音等)
  • ⚠️ 限制: 必须是近期打开过的窗口

🚀 快速开始

安装

pip install wxautoz

使用示例

运行后台读取聊天记录测试程序:

python test_get_messages.py

代码示例

import wxauto.ui.base as base
from wxauto import WeChat

# 启用后台模式
base.WXAUTO_BACKGROUND_MODE = True

# 初始化微信
wx = WeChat()

# 切换到目标聊天
wx.ChatWith("文件传输助手")

# 获取聊天记录
messages = wx.GetAllMessage()

📝 功能说明

后台模式

后台模式允许在不显示微信窗口的情况下执行操作,适用于:

  • 自动化消息监控
  • 定时任务处理
  • 消息数据收集

限制说明

当前版本需要目标聊天窗口在近期被打开过。如果切换失败,请先在微信中手动打开该会话。

🔗 相关链接


🧩 Acknowledgement

This project is built upon the excellent open-source work wxauto
by cluic, licensed under the MIT License.

The cPilot team has made major improvements and extensions, including
enhanced WeChat automation capabilities, improved reliability, and additional developer tools.


📜 License

This project is released under the MIT License.

  • Original work © 2021 cluic
  • Modified work © 2025 cPilot

You are free to use, modify, and distribute this software,
provided that proper attribution to both authors is preserved.

For full license text, please see the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wxautoz-0.1.2.tar.gz (97.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wxautoz-0.1.2-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

File details

Details for the file wxautoz-0.1.2.tar.gz.

File metadata

  • Download URL: wxautoz-0.1.2.tar.gz
  • Upload date:
  • Size: 97.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for wxautoz-0.1.2.tar.gz
Algorithm Hash digest
SHA256 898d8c6faced60f131d443a178b29d00fa3bb3a0eee01b21b1c9bf8a95a00b2b
MD5 a9b7e83114bc6ed6bfe11615e73539ed
BLAKE2b-256 a2e95435bba3726d7bab3016d7608952c06594536633fdcc6a0b497b7c7d0992

See more details on using hashes here.

File details

Details for the file wxautoz-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: wxautoz-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 106.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for wxautoz-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be41f1693eea58ff6db0a50b1c64776ce48c1344d2fb8e21e01aa7b27be77fdf
MD5 9abeae9d0b41d7c868f3e98c56b88b8e
BLAKE2b-256 830cd474ff82373fd1a96855b07db1390b745b3392274e34de6bbd1dbe4052c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page