v2025.6.2
All Bundles

Clipboard

Clipboard handling

Operations

GetClipboardText

Get UTF-8 text from the clipboard

function : GetClipboardText() ~ String

Return

TypeDescription
Stringclipboard text on success or NULL on failure

HasClipboardText

Flag indicating whether the clipboard exists and contains a text string that is non-empty

function : HasClipboardText() ~ Bool

Return

TypeDescription
Booltrue if the clipboard has text, or false if it does not

SetClipboardText

Put UTF-8 text into the clipboard.

function : SetClipboardText(text:String) ~ Int

Parameters

NameTypeDescription
textStringthe text to store in the clipboard

Return

TypeDescription
Int0 on success or a negative error code on failure