Project

General

Profile

$cb » History » Revision 3

Revision 2 (Per Amundsen, 02/23/2014 04:37 AM) → Revision 3/6 (Per Amundsen, 08/09/2015 06:08 AM)

_Added in 1.9.0_ 

 *$cb* 

 Returns the clipboard contents. 

 ----------------------------------------------------------------------------- 

 *$cb(N)* 

 Returns a line of text from the clipboard. 

 *Parameters* 

 N - If N = 0 returns total number of lines in the clipboard else return the Nth line in the clipboard. 

 *Properties* 

 .len - If N = 0 returns total length of all lines in the clipboard else return length of the Nth line. 

 *Êxample* 

 <pre> 
 ;Return number of lines in the clipboard 
 //echo -ag $cb(0) 

 ;Return 5th line in the clipboard 
 //echo -ag $cb(5) 

 ;Return length of the 5th line in the clipboard 
 //echo -ag $cb(5).len 
 </pre>