ClipboardText

Returns or sets a text string to the Windows clipboard.

Syntax

rhinoscriptsyntax.ClipboardText (text=None)

rhinoscript.utility.ClipboardText (text=None)

Parameters

text

Optional.  String.  A text string.

Returns

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.

Example

import rhinoscriptsyntax as rs

txt = rs.ClipboardText("Hello Rhino!")

if txt: rs.MessageBox(txt, 0, "Clipboard Text")