c#sendmessage或postmessage ctrl + c [英] c# sendmessage or postmessage ctrl+c

查看:501
本文介绍了c#sendmessage或postmessage ctrl + c的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该怎么办



c #sendmessage或postmessage ctrl + c

What do I do

c# sendmessage or postmessage ctrl+c

推荐答案

如果你是尝试在您自己的应用程序中执行此操作,然后您需要做的就是使用剪贴板类 [ ^ ] - 有适当的Set方法为你做复制。



如果你想尝试获取另一个应用程序将其内容复制到剪贴板,然后在此处查看: http ://stackoverflow.com/questions/235972/copy-and-modify-selected-text-in-different-application [ ^ ]
If you are trying to do this in your own application, then all you need to do is use the Clipboard Class[^] - is has appropriate Set methods to do teh copy for you.

If you are trying to get another app to copy its content to the clipboard, then see here: http://stackoverflow.com/questions/235972/copy-and-modify-selected-text-in-different-application[^]


SendMessage和PostMessage之间的区别在于Send是同步的 - 直接调用目标窗口的窗口过程,直到完成后才返回。发布和另一只手是异步的 - 它将消息放在链接到目标线程的队列中并立即返回...



然而它只是一个解释差异 - 你的问题没有任何有用的信息来获得有意义的答案......
The difference between SendMessage and PostMessage is that Send is synchronous - directly calls the target windows' window procedure and does not return until it finished. Post and the other hand is asynchronous - it places the message in a queue linked to the target thread and returns immediately...

However it is only an explanation of the difference - your question lacks any useful information for meaningful answer...


My English is not very good description of not too clear

Thank you


这篇关于c#sendmessage或postmessage ctrl + c的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆