通过我的消息发送消息到其他应用程序 [英] Send message to other Application through mine
本文介绍了通过我的消息发送消息到其他应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何通过我的应用程序向其他应用程序发送消息.例如,我已经打开了记事本(但已最小化)和我的应用程序,现在我单击显示它",它显示了记事本,或者如果我在应用程序文本框中键入了某些内容,即使它已最小化,它也会在记事本中键入两个! >
谢谢! :)
I would like to know how to send message to other application through my application. For example i have opened notepad (but minimized) and my application and now i click "show it" and it shows notepad or if i type something in my application textbox then that it types in that notepad two even if its minimized!
Thank you! :)
推荐答案
您需要SendMessage
/PostMessage
Windows消息发送到目标HWND
.您可能还需要CBT挂钩,具体取决于您要如何操纵目标窗口的行为.
请参阅有关此主题的本文:
使用消息和简单的CBT挂钩操作Windows [
You need toSendMessage
/PostMessage
Windows messages to the targetHWND
. You may also need a CBT hook depending on how you want to manipulate the behavior of the destination window.
See this article on this topic:
Manipulating Windows using messages and simple CBT hooking[^]
(apparently lots of people are trying to do this nowadays, this question comes up very frequently).
这篇关于通过我的消息发送消息到其他应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文