Skip to content

getClipboard

Gets the current clipboard text content.

Syntax

lua
Ham.getClipboard()

Returns

  • string - Clipboard contents

Example

lua
local clipboardText = Ham.getClipboard()
print("Clipboard: " .. clipboardText)

See Also

Released under the ISC License.