From WikiChip
Difference between revisions of "mirc/commands/clipboard"
m (Bot: Fixing compatibility) |
Maroonbells (talk | contribs) (Fix syntax and add'l examples) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''/clipboard | + | {{mirc title|/clipboard Command}} |
+ | The '''/clipboard''' command copies text to the clipboard. | ||
== Synopsis == | == Synopsis == | ||
− | /clipboard [-an] | + | /clipboard [-an] [text] |
== Switches == | == Switches == | ||
− | * '''-a''' - Appends text to the end of the clipboard | + | * '''-a''' - Appends text to the end of the current clipboard's contents |
− | * '''-n''' - Appends a $ | + | * '''-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 == | == Parameters == | ||
− | * ''' | + | * '''[text]''' - Text to be placed in clipboard. If no text parameter used, the clipboard is cleared. |
== Example == | == Example == | ||
− | < | + | <source lang="mIRC"> |
− | /clipboard Hello World! | + | 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 | ||
+ | </source> | ||
== Compatibility == | == Compatibility == | ||
{{mIRC compatibility|5.1}} | {{mIRC compatibility|5.1}} | ||
Line 25: | Line 38: | ||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:mIRC commands|clipboard command - mIRC]] |
Latest revision as of 22:31, 9 January 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
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]
mIRC commands list