There is currently no way to correctly handle the clipboard in mIRC. $cb and $cb(N) chops at 4150 characters.
Recently, in similar situations, binvar support was added so I would like to see binvar support for $cb.
Some suggestions come from https://forums.mirc.com/ubbthreads.php/topics/261638/

$cb.utf - returns the utf8 encoded version of the full clipboard

$cb(&binvar).utf - put the utf8 encoded version of the full clipboard into the &binvar

$cb(&binvar) - put the full content of the clipboard inside the &binvar

$cb(N,&binvar) - put the Nth line into the &binvar
$cb(N,u,&binvar) - put the utf8 encoded version of the Nth line into the binvar


#mircscripting @ irc.swiftirc.net == the best mIRC help channel