mIRC Homepage

Counting Ctrl codes

Posted By: Mary_juana

Counting Ctrl codes - 29/11/05 01:43 PM

I've been making a little stats alias for myself where i add these things into the on input event

inc %lines $1
inc %chars $len($remspace($1-))
inc %words $numtok($1-,32)

works ok, but i wanted to count ctrl codes that i use (not including spaces) but i don't know how to go about that, my guess is that it might involve $regex which i have absolutly no idea about frown

any help would be great. thanks
Posted By: ClickHeRe

Re: Counting Ctrl codes - 29/11/05 01:45 PM

$calc( $len( text ) - $len( $strip( text ) ) )
Posted By: mIRCManiac

Re: Counting Ctrl codes - 29/11/05 03:11 PM

/help $count

$count(string,,,,)

~ Edit ~

,,, = 2,3,22,31 = bold,color,reverse,underline
Posted By: Mary_juana

Re: Counting Ctrl codes - 29/11/05 03:28 PM

Thanks guys, sometimes the easy things seem to evade my mind crazy
© 2020 mIRC Discussion Forums