CopyToClipboard
Copies an object to clipboard.
Syntax
-
CopyToClipboard(X)-
Xis any object
-
Description
If X is any object, then CopyToClipboard(X) puts X on the Windows clipboard in the most suitable format.
For most objects, this puts string(X) on the clipboard as text. However, the following are exceptions to this rule:
-
Pixmaps are copied as bitmap images.
-
Sounds are copied as PCM waveform audio data.
The function returns success if successful.
Examples
n ≔ 500; bm ≔ ComputePixmap(n, n, x, y, hsv(x⋅360/pred(n), 1, y/pred(n)))

CopyToClipboard(bm)
success