AI Agent Hub
Back to skills
WeChat Sender Pro icon

WeChat Sender Pro

Development Updated 2026.08.30

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

Please follow https://skillhub.cn/install/skillhub.md to install @user_8c002059/wechat-sender-pro.

About this skill

Problem

When you are away from your computer, you may still need to send a local image, spreadsheet, or file to a WeChat contact. WeChat does not provide an easy official sending API, and a naïve automation script often fails against the logged-in PC client, especially when the window is minimized, obscured, contaminated with leftover search text, or pointed at the wrong contact.

How It Works

The skill drives the Windows WeChat UI through GUI automation and closes the loop of finding a contact, confirming the target, pasting content, and sending it. Core capabilities include:

  • Use send_message.py for text, send_image.py for images, and send_file.py for files.
  • Use find_file.py with --name, --dirs, --ext, and --limit to locate local files before sending.
  • Prefer batch_send.py to chain search, confirmation, and sending into one workflow.
  • Use the wechat_sender.py library for window discovery, foreground switching, input cleanup, and message delivery.

The workflow follows “search, confirm, then send”: press Ctrl+F, type the contact name, press Enter twice to enter the chat, click the input area, then run Ctrl+A, Delete, and Ctrl+A to remove residual search text before pasting the payload. Images are converted to BMP/DIB so WeChat can paste them reliably, while window activation uses AttachThreadInput, keybd_event(Alt), and SetForegroundWindow to avoid selecting hidden auxiliary windows when WeChat is minimized or backgrounded.

Boundaries and Notes

This approach requires Windows, Python 3.x, a logged-in WeChat PC client, and a contact that can be found through WeChat search. It is GUI automation rather than an official WeChat API, so it is better suited to low-volume, human-verified workflows than high-concurrency, audited messaging. Add delays when sending batches and validate the flow on a test account first.

Use Cases

  • Before leaving, find a quotation spreadsheet on Desktop and send it to a customer contact.
  • Remotely ask an assistant to send a latest log screenshot to a testing contact.
  • Locate files with a given extension on the D drive, confirm the name, then send it.
  • Send a text notification to a contact without manually opening WeChat and copying.

Best For

  • Technical support staff who need to send files to fixed contacts remotely.
  • Product operations staff who regularly send local reports or screenshots to clients.
  • Engineers integrating Python scripts for Windows WeChat automation.
  • Automation engineers validating message flows on test WeChat accounts.