调试 Windows 消息内容和目标的好方法是什么?

发布于 2024-08-05 13:05:14 字数 192 浏览 2 评论 0原文

我正在开发一个基于其他行为模拟 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏别ゝ 2024-08-12 13:05:14

如果您有 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文