Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to somehow paste from the clipboard without using SendKeys.SendWait("^v"); Sounds crazy, yes, but I need to know how. Is there a method I can call in one of the system DLL's? I have searched but can find anything! Any help will be greatly appreciated!
Posted

1 solution

Perhaps you should use the Clipboard[^] Class?
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Jun-11 17:15pm    
He he, right, my 5. :-)
--SA
Sander Rossel 5-Jun-11 17:20pm    
Thanks again :)
Manfred Rudolf Bihy 5-Jun-11 20:06pm    
My 5!
Sander Rossel 6-Jun-11 2:15am    
Thanks! :)
DominicZA 6-Jun-11 2:28am    
I am using the Clipboard Class. The problem is that I need to paste into another program. I have a keyboard hook set up and now I want to make it that when they press "Ctrl + A" (example) it will paste what ever is in the clipboard. I was just using SendKeys.SendWait(MyString), which works fine, but if I want to paste an image this isn't going to work. I need to somehow just tell the OS to paste as if the user has pushed Ctrl + V.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900