AI Agent Hub
Back to skills
WeChat PC Desktop Claw Automatic Control icon

WeChat PC Desktop Claw Automatic Control

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_96ce8353/wechat-desktop-claw-automatic-control according to https://skillhub.cn/install/skillhub.md.

About this skill

The Problem to Solve

In daily office workflows, manually sending messages, images, or files via the WeChat PC client can be time-consuming and error-prone, especially for repetitive tasks. The absence of an official API for WeChat desktop limits script integration, and manual operations fail to meet batch processing needs, such as automated customer service replies or data exports.

How the Skill Works

This skill automates WeChat Windows desktop control using the pywinauto library, with core capabilities including:
- Automatic Launch and Connection: Checks if WeChat is running; if not, starts it automatically. Connects via the UIA backend, requiring the window title to be "微信" (not "WeChat").
- Contact Location: Opens the search box with Ctrl+F, inputs the contact name (supports group chats), and selects the first exact match from search results.
- Content Sending Mechanisms:
- Text Messages: All input is handled via clipboard plus Ctrl+V to avoid Chinese encoding issues; supports reading long text from files, sent with the Enter key.
- Image Sending: Converts images to BMP format (strips 14-byte file header, takes DIB data), writes directly to the Windows clipboard in CF_DIB format, then pastes into the chat box to send.
- File Sending: Opens the file selection dialog with the Ctrl+Alt+F shortcut and automates file transmission.

The process is encapsulated in a Python script, relying on pyperclip, pillow, and pywin32 libraries for stable Chinese input, and can be invoked by other Skills.

Applicability and Limitations

Consider these boundaries when using this skill:
- Window State: The WeChat window must be visible and in the foreground; minimizing to the tray disables automation.
- Login Dependency: Typically auto-logs in, but occasional QR code scanning may be required, with script prompts for user action.
- Contact Matching: Search results must exactly match the first entry; using full names or precise identifiers is recommended to avoid ambiguity.
- UI Version Sensitivity: Depends on the UI structure of the WeChat Windows version; updates may break functionality, requiring periodic compatibility checks.
- Functional Limits: Only supports sending operations; cannot read or parse WeChat message content—suitable for one-way automation tasks like batch notifications.

Use Cases

  • In customer service, need to automatically send product update notification text messages to multiple client groups to avoid manual one-by-one operations.
  • In team collaboration, regularly send weekly report files to project group chats via automation scripts to avoid downloading and re-sending.
  • In data export tasks, automatically send generated chart images to a specific contact for quick sharing of analysis results.
  • In marketing campaigns, batch send promotional material images and files to a list of potential customers to ensure accurate content delivery.

Best For

  • Customer Service Representatives: need to regularly send standardized messages and attachments to clients to improve response times.
  • Project Managers: need to automatically distribute project documents to team group chats to reduce manual upload time.
  • Data Analysts: need to quickly share analysis result images with colleagues to facilitate data collaboration.
  • Marketing Specialists: need to batch send promotional materials to potential customer lists to ensure campaign coverage.