🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
WeChat / 微信 Bot Testing
App name: 微信 or WeChat | Process name: WeChat
See references/osascript.md for shared patterns.
Activate & Navigate
# Activate WeChat
osascript -e 'tell application "微信" to activate'
sleep 1
# Search for a contact/bot (Cmd+F)
osascript -e '
tell application "System Events"
keystroke "f" using command down
delay 0.5
keystroke "TestBot"
delay 1
key code 36 -- Enter to select
end tell
'
sleep 2
Send Message
# After navigating to a chat, the input is focused
osascript -e '
tell application "System Events"
keystroke "Hello bot!"
delay 0.3
key code 36
end tell
'
Send Long Message (clipboard)
osascript -e '
tell application "微信" to activate
delay 0.5
set the clipboard to "Please help me with this task..."
tell application "System Events"
keystroke "v" using command down
delay 0.3
key code 36
end tell
'
Verify Response
sleep 10
screencapture /tmp/wechat-bot-response.png
WeChat-Specific Notes
- WeChat macOS app name can be
微信orWeChatdepending on system language. Try both:osascript -e 'tell application "微信" to activate' 2> /dev/null \ || osascript -e 'tell application "WeChat" to activate' - WeChat uses Enter to send (not Cmd+Enter by default, but configurable)
- For multi-line messages without sending, use Shift+Enter:
osascript -e 'tell application "System Events" to key code 36 using shift down' - Always use clipboard paste for CJK characters —
keystrokemangles non-ASCII
Script
./.agents/skills/agent-testing-bot/wechat/test-wechat-bot.sh "æ–‡ä»¶ä¼ è¾“åŠ©æ‰‹" "test message" 5
./.agents/skills/agent-testing-bot/wechat/test-wechat-bot.sh "MyBot" "Tell me a joke" 30