Skip to content

ihaoshuai/wechat_notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows微信提示

学习性项目, 实现了基本功能, 并不完善....

起因

偶然发现微信收到新消息时, 其窗口会发出id为0x0118的消息(后来发现好像是windows系统内部ui维护的消息....)

原理

使用dll注入windows微信窗口, 当收到对应窗口消息时, 通过管道通知ui进程捕获窗口内容展示

已实现功能

  1. 监听微信启动关闭并进行dll注入
  2. 收到消息展示微信左侧列表的第一项

不足之处

  1. 应用关闭而微信未关闭时, 调用UnHook后并不能卸载dll, 暂时没找到具体原因
  2. 实现过程中发现有UIAutomation这种功能框架, 我觉得使用这种思路实现可能会更好
  3. 置顶聊天情况下只能扩大捕获区域, 没想到啥好办法

完善方向

  1. 应用托盘化
  2. 完善微信窗口在不同状态下的捕获(最小化, 窗口大小变化)

学习到的知识

  1. windows api
  2. Windows Management Instrumentation
  3. egui
  4. dll注入

测试环境

微信: 4.1.5.30 windows: 10

About

微信消息提醒

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages