调试Windows消息内容和目标的好方法是什么? [英] What's a good way to debug Windows message content and destination?

查看:87
本文介绍了调试Windows消息内容和目标的好方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一种基于其他行为来模拟Windows鼠标的应用程序.一个示例是,按下键盘上的+或-键会将WM_MOUSEWHEEL消息发送到具有适当增量的目标窗口.问题是,在某些情况下,我很难复制我认为窗口正在发送到目标应用程序的消息.有什么方法可以记录发送到特定窗口的Windows消息(希望有一个我要捕获的消息过滤器),然后稍后再查看该数据?

解决方案

如果您使用的是Visual Studio,那么Spy ++附带此功能,即可完成此工作.

另一种方法是 Winspector-Ultimate Windows Message Spy

I'm working on an application that simulates a Windows mouse based on other behavior. One example is that pressing the + or - keys on the keyboard sends the WM_MOUSEWHEEL message to a target window with an appropriate delta. The problem is that in some situations I'm having a hard time replicating the messages that i think windows is sending to the target application. Are there any ways to record windows messages sent to a specific window (hopefully with a filter for which messages I want to catch) and then review that data later?

解决方案

If you have Visual Studio, that comes with Spy++, which does exactly this job.

An alternative is Winspector - Ultimate Windows Message Spy

这篇关于调试Windows消息内容和目标的好方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆