开发者

how to use sendkeys to copy text from outside application

I have a specific application (someprogram.exe) i wish to use the sendkeys command to perform CTRL + C from the applicat开发者_开发问答ion i'm bulding in vb.net. I don't need to bring the data into my app, just copy it to the windows clipboard.

Thanks in advance!


i would Recommand to send the message GETTEXT to handle of that control (use FindWindow api maybe to get the handle) and then set it yourself to the clipboard, to avoid copying wrong data or only the selected part of it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜