[英]Get the data copied after Ctrl+ C operation to a variable
I have some data in notepad and have performed Sendkeys("Ctrl+C") using keyboard library.I want to get the copied data to a variable in C# code. 我在记事本中有一些数据,并已使用键盘库执行了Sendkeys(“ Ctrl + C”)。我想将复制的数据保存到C#代码中的变量中。
How to get the data to variable programmatically. 如何以编程方式获取数据变量。
I tried clipboard.GetText() API and it is giving empty string. 我尝试了剪贴板.GetText()API,它给出了空字符串。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.