← All built-ins / ui_clip_get()

ui_clip_get()

ui_clip_get(): string

Parameters

Takes no arguments.

Return value

Current clipboard text.

Example

echo "ui_clip_get(); // read clipboard";
ui_clip_get(); // read clipboard

This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.

See also

ui_clip_set()