Clipboard File Views
I am trying to copy a file onto the clipboard but I am not having any success. Perhaps someone can help me out. I have the full file name from my application and to put it onto the clipboard I have tried: Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileName), True) where myFileName is a string and contains the full path name of the file. When I retrieve a 'FileDrop' type data from the clipboard the object is an array so I also tried: Dim myFileData as String() = {myFileName} Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileData), True) but niether of these work. Can some please tell hoe I should do it. Thanks Fred
We all know if you do a Alt+PrintScreen or PrintScreen it copies the Screenshot to the Clipboard. In MSN/WLM, if you press Ctrl+V (or right click and Paste) in the Chatting area, you can send the screenshot to the contact straightaway. You don't have to save the file temporarily to send. I wished this was possible with Digsby as well.I understand the developers are aware of this feature request from my post at Neowin, but this is the official thread. Thanks for the great IM guys, McoreD
Each line of text on Clipboard typically ends with carriage return and linefeed (CR+LF), which can be expressed in the script as `r`n. Files (such as those copied from an open Explorer window via Control-C) are considered to be text: They are automatically converted to their filenames (with full path) whenever Clipboard is referenced in the script. To extract the files one by one, follow this example:
A saved clipboard file internally consists of a four-byte format type, followed by a four-byte data-block size, followed by the data-block for that format. If the clipboard contained more than one format (which is almost always the case), these three items are repeated until all the formats are included. The file ends with a four-byte format type of 0.