mIRC Home    About    Download    Register    News    Help

Print Thread
#136510 29/11/05 01:43 PM
Joined: May 2005
Posts: 79
M
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

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

#136512 29/11/05 03:11 PM
Joined: Feb 2005
Posts: 681
M
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.
#136513 29/11/05 03:28 PM
Joined: May 2005
Posts: 79
M
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 79
Thanks guys, sometimes the easy things seem to evade my mind crazy


Link Copied to Clipboard