Please enable JavaScript to view this site.

CMDebug / TCC-RT Help v. 29

@CLIP[n[, clipboard]] :  Returns line n from the Windows text clipboard. The first line is numbered 0. The string **EOC** is returned for all line numbers beyond the end of the clipboard.


The optional second parameter (0-9) specifies the clipboard you want to use (CLIP0: - CLIP9:). The default Windows clipboard is CLIP0:.


Numeric input may be entered in either decimal format (a sequence of 0-9 digits) or in hexadecimal format ("0x" followed by a sequence of 0-F hex digits).




echo %@clip[0]


if "%@clip[2]" eq "**EOC**" echo No more data in the clipboard


rem Return the first line in CLIP7:

echo %@clip[0,7]