Clipboard.RawData
From Xojo Documentation
Method
Clipboard.RawData(DataType as String) As String
New in 2005r1
Supported for all project types and targets.
New in 2005r1
Supported for all project types and targets.
Returns the binary data from the Clipboard as a string for the specified type or UTI.
Notes
The DataType parameter supports both the older MacType and newer UTIs. If the DataType parameter is exactly 4 bytes then it is treated as a MacType for backwards compatibility. Otherwise it is treated as a UTI. An example would be "public.rtf".
On Windows you can use the a special DataType called "HTML Format" to add or fetch HTML data from the clipboard[1].
Sample Code
This code reads the contents of the Clipbpoard as an mp3 file.
On Windows, this code gets HTML data from the Clipboard: