Retrieves text from the clipboard.
ClipGet ( )
Parameters
None.
Return Value
| Success: | Returns a string containing the text on the clipboard. |
| Failure: | Sets @error to 1 if clipboard is empty |
| to 2 if contains a non-text entry. | |
| to 3 or 4 if cannot access the clipboard. |
Remarks
When multiple selecting file/dir are stored in the clipboard, the filename/dirname are returned as texts separated by @LF.
Related
ClipPut
Example
$bak = ClipGet()
MsgBox(0, "Clipboard contains:", $bak)
ClipPut($bak & "additional text")
MsgBox(0, "Clipboard contains:", ClipGet())