Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ VisualStudio2012
Hello, I start creating my own snippet's for some special purpose, and don't know how to get clipboard text in snippet, well i would like to make variable that take clipboard text like it's done in "Visual assist" with variable called $clipboard$.
Posted 27-Nov-12 23:25pm
Comments
Richard MacCutchan at 28-Nov-12 6:52am
   
You need to add some code in your program to read the data out of the clipboard and add it to the snippet at the appropriate place.
novadivlja at 29-Nov-12 3:53am
   
well if that case i don't need snippets to insert clipboard and text just can use autohotkey insert from there, but what searching for is way of defining snippet that automatically get clipboard from it sell not something that insert clipboard in it...
Richard MacCutchan at 29-Nov-12 5:07am
   
I'm sorry but I cannot understand what you are saying here. You need to try and explain what problem you are trying to solve. Is this some program you are writing or some third party program that you are trying to implement or modify?
novadivlja at 29-Nov-12 17:56pm
   
Thanks for replay maybe i didn't clear enough, i try to connect clipboard with code snippet with out any other work around. Simply i try to find way to read inside snippet clipboard value and put it in variable, that i can use it.

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

  Print Answers RSS
0 OriginalGriff 390
1 Jochen Arndt 165
2 Richard MacCutchan 135
3 DamithSL 95
4 Garth J Lancaster 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100