I'd like to implement a feature similar to the one in CintaNotes in a project of mine:
Clip text from anywhere. Just select it and press the hotkey!
The text-clipping "magic" works in any application that can copy text to clipboard. CintaNotes automatically saves the text and its source URL, and you don't even have to install a plug-in to integrate it with your web browser!
How do you do this programmatically? (Preferably C#, but I guess I can use PInvoke..)
Thanks.
Edit: did some more digging.. is this it? http://msdn.microsoft.com/en-us/library/aa767917%28VS.85%29.aspx
The source url is always included in the base tag of the clipboard data when you copy a selection from a page in a web browser?