Onetastic Macro Documentation >
>
>
Clipboard_Get Clipboard_Get
Returns information from the clipboard for the specified format.
Syntax
String|Binary Clipboard_Get(String format)
Parameters
- String format
- The format to read from the clipboard. Possible values are: plain, html, image. Return type of the function is binary if this is set to image, and string otherwise.
Examples
$page = GetCurrentPage()
if (Clipboard_Query("plain"))
$page.title.paragraph.text = Clipboard_Get("plain")
if (Clipboard_Query("html"))
$htmlBlock = InsertObject($page.outlines[0], "HtmlBlock", -1)
$htmlBlock.value = Clipboard_Get("html")
if (Clipboard_Query("image"))
$image = InsertObject($page, "Image", -1)
$image.data = Clipboard_Get("image")
|