mIRC Home    About    Download    Register    News    Help

Print Thread
Counting Ctrl codes #136510 29/11/05 01:43 PM
Joined: May 2005
Posts: 79
M
Mary_juana Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 79
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

Re: Counting Ctrl codes #136511 29/11/05 01:45 PM
Joined: Jan 2003
Posts: 249
C
ClickHeRe Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
$calc( $len( text ) - $len( $strip( text ) ) )

Re: Counting Ctrl codes #136512 29/11/05 03:11 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
/help $count

$count(string,,,,)

~ Edit ~

,,, = 2,3,22,31 = bold,color,reverse,underline

Last edited by mIRCManiac; 29/11/05 03:16 PM.
Re: Counting Ctrl codes #136513 29/11/05 03:28 PM
Joined: May 2005
Posts: 79
M
Mary_juana Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 79
Thanks guys, sometimes the easy things seem to evade my mind crazy