This function will return a string of the text contained on the clipboard. if no text is stored it will return an empty string "".NOTE: This function is only valid for the Windows target.
str = clipboard_get_text();
The above code checks the clipboard for text and if it contains any, it is read as a string into the variable "str". Finally the clipboard is cleared by setting it to an empty string.