调试 Windows 消息内容和目标的好方法是什么?
我正在开发一个基于其他行为模拟 Windows 鼠标的应用程序。一个示例是按键盘上的 + 或 - 键将 WM_MOUSEWHEEL 消息发送到具有适当增量的目标窗口。问题是,在某些情况下,我很难复制我认为 Windows 发送到目标应用程序的消息。有没有什么方法可以记录发送到特定窗口的窗口消息(希望使用我想要捕获的消息的过滤器),然后稍后查看该数据?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有 Visual Studio,那么 Spy++ 就可以完成这项工作。
另一种选择是 Winspector - 终极 Windows 消息间谍
If you have Visual Studio, that comes with Spy++, which does exactly this job.
An alternative is Winspector - Ultimate Windows Message Spy