Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading and Writing to Clipboard

Status
Not open for further replies.

WSA

Programmer
Apr 10, 2000
8
GB
I've looked through the archives, and some previous answers have part of what I want, but not all of it unfortunately.

I'ld like to copy text to clipboard AND paste it again (using code, obviously!). I guess the answer is an API: if so can anyone give an example of API-code that copies to clipboard (as well as pastes)?

And if there's an non-API method then that would be great!

regards,

WSA

[sig][/sig]
 
Is this something that could be done by storing the value in a Variable (local or public)?

PaulF [sig][/sig]
 
Unfortunately not - I need it to be to the clipboard. Otherwise I'ld just chuck everything, as you say, into a variable.

I've been looking at API answers on the web but many of them use the VB clipboard wrapper, and don't quote the all important copy-into-clipboard stuff that I'ld like.

(Thanks for answering, PaulF)

regards,

WSA [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top