ClipboardClass class.
Replaces the text in the clipboard.
Clipboard.SetText ([lsText])
Variable | Description |
---|---|
lsText | Optional: The text to write to the clipboard. LIST OF STRING. |
SetText writes the specified text to the clipboard, with each element in lsText becoming a line of text in the clipboard. If you omit lsText, or if lsText is an empty list, SetText clears the clipboard.
On Windows platforms, SetText sets the primary selection (middle mouse button paste). To enable SetText to set the clipboard selection, set the OPT_PRIMARY_SELECTION Agent option to FALSE as follows:
Agent.SetOption (OPT_PRIMARY_SELECTION, FALSE)
Clipboard.SetText (TextEditor.Document.GetText())