如何跨进程发送字符串?
问题描述:
如何跨进程发送字符串?
处理方案:
参考:
http://blog.csdn.net/wu_07/archive/2004/11/26/194814.aspx
http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=205761
团体:
有两种办法:
一是向目标对象发送wm_settext音讯
参考:
http://www.ttian.net/article/show.php?id=132
http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=204580
http://www.vchelp.net/itbookreview/view_paper.asp?paper_id=1198
http://dev.csdn.net/article/58/58647.shtm
http://dev.19xz.com/soft/60230.htm
二是先将要发送的内容复制到剪贴板,再向目标对象发送wm_paste音讯
http://www.blogcup.com/read_yang119345_5312.html
http://www.zdnet.com.cn/developer/code/story/0,2000081534,39156949,00.htm
两种方法都必须首先用FindWindowEx等函数首先枚举到目标对象的句柄,下面操作就简单了。