window 使用 python win32api 未收到消息

window message not received using python win32api

我正在使用 win32 包向 window 发送消息。我设法获得了句柄,显然消息已发送,因为我从发送 code. however it has no action in the window, and spyxx 中得到 return 值 0 没有看到指定句柄上的消息。 我的 window 没有 child window 并且是 class UnityWndClass。 (我相信它使用 64 位进程,因为它在 spy++ 中不可见?)

运行 IDE 作为管理员使其工作(该程序还需要管理员)