From WikiChip
/clipboard Command - mIRC
< mirc‎ | commands

The /clipboard command copies text to the clipboard.

Synopsis[edit]

/clipboard [-an] [text]

Switches[edit]

  • -a - Appends text to the end of the current clipboard's contents
  • -n - Appends a $crlf to the end of the text

Note: Presence or absence of a single trailing $crlf does not affect the lines count of $cb(0)

Parameters[edit]

  • [text] - Text to be placed in clipboard. If no text parameter used, the clipboard is cleared.

Example[edit]

Clear the clipboard and put "Hello world!" in it
/clipboard Hello World!
 
Put 'abcd' into clipboard then append efgh and carriage return:
//clipboard abcd | clipboard -an efgh | echo -a $cb(0).len / $cb(1).len / $cb(1)
returns: 10 / 8 / abcdefgh
(The difference between length of $cb(0) and $cb(1) is the $crlf.
 
Clear clipboard contents:
/clipboard
 
Append $crlf to end of current clipboard contents:
/clipboard -an

Compatibility[edit]

Added: mIRC v5.1
Added on: 28 Aug 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also[edit]

[Expand]
v · d · e mIRC commands list