Returns or sets a text string to the Windows clipboard.
rhinoscriptsyntax.ClipboardText (text=None)
rhinoscript.utility.ClipboardText (text=None)
text |
Optional. String. A text string. |
String |
If text is not specified, the current text string from the Windows clipboard if successful. |
String |
If text is specified, the previous text string from the Windows clipboard if successful. |
None |
If not successful or on error. |
import rhinoscriptsyntax as rs
txt = rs.ClipboardText("Hello Rhino!")
if txt: rs.MessageBox(txt, 0, "Clipboard Text")