Skip to Content

clipboard

Read and write the Windows clipboard as UTF-8 text.


clipboard.set

clipboard.set(text)

Sets the Windows clipboard to UTF-8 text. Invalid UTF-8 and clipboard access failures are ignored.

Returns: no values.

clipboard.get

clipboard.get()

Returns: clipboard text, "" if the clipboard contains no text, or nil if it cannot be opened or the text exceeds 64 KiB.

On this page