如何将剪贴板值添加到另一个应用程序C# [英] How to add clipboard value to another application C#
本文介绍了如何将剪贴板值添加到另一个应用程序C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个将文本值复制到剪贴板的应用程序。我要在另一个活跃的应用程序中超过该值。粘贴应该自动完成。
我尝试过:
我有一个将文本值复制到剪贴板的应用程序。我要在另一个活跃的应用程序中超过该值。粘贴应该自动完成。
I've a application that copy the text value to clipboard. I've to past the value in another active application. The paste should done automatically.
What I have tried:
I've a application that copy the text value to clipboard. I've to past the value in another active application. The paste should done automatically.
推荐答案
你可以使用 SendKeys.Send方法(字符串)(System.Windows.Forms) [ ^ ]
这 post [ ^ ]包括如何查找其他应用程序的说明(还有其他通过谷歌的例子)
VB.NET中的一个例子
winforms - VB.NET将Tab键发送到另一个应用程序窗口 - Stack Overflow [ ^ ]
You could just use SendKeys.Send Method (String) (System.Windows.Forms)[^]
This post[^] includes an explanation of how to find the other application (there are other examples via google)
An example in VB.NET
winforms - VB.NET Send Tab key to another application window - Stack Overflow[^]
这篇关于如何将剪贴板值添加到另一个应用程序C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文