setclipboard
Copies text to the user’s clipboard.
Syntax
setclipboard(text: string) -> ()
Also available as
toclipboardset_clipboardto_clipboardwrite_clipboard
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | Text to copy. |
Description
The clipboard is shared with the desktop, so this replaces what the user previously copied. Embedded zero bytes are not a supported clipboard-text format. Failure to reach the clipboard raises an error rather than claiming that copying succeeded.
Example
setclipboard("Example text")
These are Game executor contracts. Check build requirements and session lifetimes before using them.
