world.GetClipboard

MUSHclient script function (Method) — introduced in version 3.39

Gets the clipboard contents

Prototype

BSTR GetClipboard();

Data type meanings

Description

Returns the clipboard contents, if the clipboard contains straight text. If there is no text on the clipboard, it returns the empty string.

VBscript example

Note GetClipboard

Jscript example

Note (GetClipboard ());

PerlScript example

Note (GetClipboard ());

Python example

world.Note (world.GetClipboard)

Lua example

Note (GetClipboard ())

Return value

The clipboard contents, of an empty string if the clipboard does not contain text.

Related topic

Utilities

See also

FunctionDescription
SetClipboardSets the clipboard contents