使用 python win32api 未收到窗口消息

发布于 2025-01-15 05:33:41 字数 289 浏览 2 评论 0原文

我正在使用 win32 包将消息发送到窗口。我设法获取句柄,显然当我从发送 code。但是它在窗口中没有任何操作,并且 spyxx 在指定句柄上看不到消息。 我的窗口没有子窗口,并且是类 UnityWndClass。 (我相信它使用 64 位进程,因为它在间谍++中不可见?)

I am using win32 packages to send messages to a window. I manage to get the handle and apparently the message is sent as I get return value 0 from send code. however it has no action in the window, and spyxx does not see the message on the specified handle.
my window has no child window and is class UnityWndClass. (I believe it uses a 64 bit process as it was not visible with spy++?)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

初与友歌 2025-01-22 05:33:41

以管理员身份运行 IDE 使其正常工作(该程序也需要管理员)

Running the IDE as admin made it work (the program also requires admin)

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