简体   繁体   English

如何获取收到mousedoubleclick的应用程序的句柄?

[英]How to get the handle of application that received the mousedoubleclick?

Is it possible to get the handle of the Window the user clicked (or in my case double-clicked) on? 是否可以获取用户单击(或者在我的情况下是双击)的Window的句柄?

Adding more detail: I have an application that when launched by the user, watches for a specific hot key (CTL+SHIFT+T). 添加更多细节:我有一个应用程序,当用户启动该应用程序时,它会监视特定的热键(CTL + SHIFT + T)。 When pressed, my application sends a keyboard command back to the original application (CTL-C), then takes the text from the Clipboard and logs the text. 当按下时,我的应用程序将键盘命令发送回原始应用程序(CTL-C),然后从剪贴板中获取文本并记录该文本。
I am attempting to extend/replace the keyboard sequence with a double-click. 我试图通过双击扩展/替换键盘顺序。 Is this possible? 这可能吗?

根据您在注释中解释的内容,当用户按“ CTL + T”执行所需操作时,需要获取前景窗口的句柄,并且在链接中,它将向您展示如何获取前景窗口的句柄。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM