View Single Post
Old 31st May 2016, 18:54   #8  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Here, sample C source for CLI command that copies current directory to clipboard:- http://stackoverflow.com/questions/1...clipboard-in-c

Could be modified to send something else to clipboard (if modded to take string, then anything else to clipboard).
(not bullet proof error processing, need a bit more work but reasonable template).

EDIT: 2nd last post.

EDIT: Uses UNICODE, easily modded to ANSI (Change CF_UNICODETEXT to CF_TEXT and change WCHAR stuff).
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 31st May 2016 at 19:04.
StainlessS is offline   Reply With Quote