ComWeChatRobot icon indicating copy to clipboard operation
ComWeChatRobot copied to clipboard

c#我就想问一下有老哥知道怎么获取微信收到消息事件么?我这收不到消息事件呢

Open spin200 opened this issue 2 years ago • 4 comments

微信截图_20221124230051

c# 我就想问一下有老哥知道怎么获取微信收到消息事件么?我这收不到消息事件呢

spin200 avatar Nov 25 '22 12:11 spin200

使用c#对接的com接口,目前可以调用API发送消息和或者自身信息,但是这个怎么获取微信的消息事件,没见有动静呀,有老哥用c#对接成功了么,使用的微信3.7.0.30版本

spin200 avatar Nov 25 '22 13:11 spin200

123 调用CStartReceiveMessage 启动接收消息Hook这个也没有事件推送消息过来,

spin200 avatar Nov 25 '22 13:11 spin200

你这个pid怎么是写死的,,难道不是通过new_wechat获取的吗

xylonx avatar Jan 14 '23 14:01 xylonx

我对接成功了,用C#开一个TcpListener服务,然后把端口号传给api调用开启消息hook的接口就好啦,会给你的服务推送消息,我用的是http方式,接收消息只能用socket噢

shelley-xl avatar Apr 27 '23 05:04 shelley-xl