Clipboard
Setting the Clipboard
// data - the value to be copied to the clipboard
// this is typically a string
clipboard "set" data
// "clear" doesn't require a data argument.
clipboard "clear"Reading the Clipboard
// puts the clipboard's content into the console
log clipboardClipboard Events
window.on("copy", () -> (
log "Copied text:" + clipboard
))
window.on("paste", () -> (
log "Pasted text:" + clipboard
))Last updated