public native readFromClipboard() as String
Reads plain text from the operating-system clipboard.
The method returns an empty string when the clipboard does not currently expose textual content. Multiline widgets keep line separators intact; single-line widgets may normalize them before insertion.
Clipboard text, or an empty string when no text is available.
pasted = window.readFromClipboard() if pasted != "": print(pasted)