Shoutbox

[Request] - Phrase Counter - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] - Phrase Counter (/showthread.php?tid=63522)

[Request] - Phrase Counter by M73A on 07-18-2006 at 09:58 AM

i say 'lol way to much, i sort of type it in acknowledgement that ive understood something, is there a way to make a script that will count how many times ive said it? and only let me say it a certain amount of times?

thanks:) if anyone wants to make it feel very welcome to


RE: [Request] - Phrase Counter by Chris4 on 07-18-2006 at 10:04 AM

I'm positive it can be made, as there is a script that counts every letter of the alphabet.


RE: [Request] - Phrase Counter by M73A on 07-18-2006 at 10:23 AM

hm, cool! would it be hard? nif it would be relatively simple i'll give it a go tonight!


RE: [Request] - Phrase Counter by RaceProUK on 07-18-2006 at 10:35 AM

I believe the string function is match(regex)? It returns an array of matches, with the entire string in the first element. So, use the regex \slol\s, and add the number of elements minus one to the counter.

If you don't mind waiting till tonight, I'll write it for you.


RE: [Request] - Phrase Counter by Ezra on 07-18-2006 at 10:40 AM

quote:
Originally posted by RaceProUK
I believe the string function is match(regex)? It returns an array of matches, with the entire string in the first element. So, use the regex \slol\s, and add the number of elements minus one to the counter.

If you don't mind waiting till tonight, I'll write it for you.

It only returns the matches not the entire string

EDIT: I'm not completely correct.

http://msdn.microsoft.com/library/...