Project

General

Profile

$cb » History » Version 2

Per Amundsen, 02/23/2014 04:37 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$cb*
4
5
Returns the clipboard contents.
6
7
*$cb(N)*
8
9
Returns a line of text from the clipboard.
10
11
*Parameters*
12
13
N - If N = 0 returns total number of lines in the clipboard else return the Nth line in the clipboard.
14
15
*Properties*
16
17 2 Per Amundsen
.len - If N = 0 returns total length of all lines in the clipboard else return length of the Nth line.
18 1 Per Amundsen
19
*Êxample*
20
21
<pre>
22
;Return number of lines in the clipboard
23
//echo -ag $cb(0)
24
25
;Return 5th line in the clipboard
26
//echo -ag $cb(5)
27
28
;Return length of the 5th line in the clipboard
29
//echo -ag $cb(5).len
30
</pre>