Feature Request - Clipboard functions in the API
When I'm writing on stuff in Reaper, I always find one thing missing very much: The chance to put or get values from the Clipboard using Lua, so I'd love to ask for these two functions:
value GetClipboard(type)
Gets data from the clipboard of the system
type - is the type of "media" to get from the clipboard. Standard is text.
value - is the returned text(string), or an audio/picture-object.
bool PutToClipboard(object[, type])
Puts data to the clipboard of the system. Returns true, if it worked.
object - the data to put to the clipboard (string, mediaitem, etc)
type - is the type of "media" to put to the clipboard. Standard is text.
Last edited by Meo-Ada Mespotine; 07-04-2017 at 11:37 AM.
|