How cluic/wxauto works
Project type and purpose
• From the README and file tree, “wxauto” is a Python UI-Automation library/tool for controlling the Windows WeChat client.
• It provides high-level APIs (e.g., WeChat.SendMsg(), GetAllMessage(), AddListenChat()) that wrap lower-level UI Automation and Win32 calls to drive WeChat’s GUI.
File structure
• Top-level:
• pyproject.toml – build/config for Python packaging
• README.md, LICENSE, .gitignore
• Core modules under “wxauto/”:
• wx.py – likely hosts the public WeChat class and entry point
• exceptions.py, logger.py, languages.py, param.py – shared utilities
• msgs/ – message model classes (base, friend, self, type, attr)
• ui/ – GUI component abstractions:
– base.py (generic UI element wrapper)
– main.py (main window wrapper)
– navigationbox.py, sessionbox.py, chatbox.py, component.py
• uiautomation.py – direct integration with the UIAutomation library
• utils/ – support functions (tools.py, win32.py)
README for additional insights
• The README describes Python 3.9+, Windows10+, WeChat3.9.X.
• It shows usage patterns (initialization, sending, listening).
• Public API → internal core → UIAutomation → Windows → WeChat client