mIRC Snippet:
$multiremtok
Posted on Mar 28, 2008 1:31 am
Posted on Mar 28, 2008 1:31 am
I'm very late on this, but perhaps have it ignore the invalid param using /continue? It'd be great to implement this VS. stopping the entire process. Otherwise, fantastic work.
mIRC Snippet:
$nicks
Posted on Nov 20, 2007 8:46 am
Posted on Nov 20, 2007 8:46 am
Max lenght of a variable is usually around 900 ($len() wise).
So you could simply limit it to 900, and if it reaches 900 ull add a message that its full or so. OR!
You can use a hash table (Dont know what the limit is, but obviously easier to deal with when it comes to several ID's).
If none of thats good enough, you can use dyanmic variables, which you'll loop twice.
First you add the items in variable, if it reaches 900, u use variable.1, and so on, and add the id's in another variable
so in the end u might have
%variable.1
%variable.2
%variable.3
%variable.all 3
That way you'll know, "aha, there's 3 dyanmic vars" and then echo the info.
Ill let u figure it out urself ;)
So you could simply limit it to 900, and if it reaches 900 ull add a message that its full or so. OR!
You can use a hash table (Dont know what the limit is, but obviously easier to deal with when it comes to several ID's).
If none of thats good enough, you can use dyanmic variables, which you'll loop twice.
First you add the items in variable, if it reaches 900, u use variable.1, and so on, and add the id's in another variable
so in the end u might have
%variable.1
%variable.2
%variable.3
%variable.all 3
That way you'll know, "aha, there's 3 dyanmic vars" and then echo the info.
Ill let u figure it out urself ;)
mIRC Snippet:
Picwin balloontips
Posted on Nov 18, 2007 9:24 pm
Posted on Nov 18, 2007 9:24 pm
you're right, this is where we post comments! :P
mIRC Snippet:
Picwin balloontips
Posted on Nov 18, 2007 9:24 pm
Posted on Nov 18, 2007 9:24 pm
you're right, this is where we post comments! :P
mIRC Snippet:
$multiremtok
Posted on Nov 15, 2007 10:35 pm
Posted on Nov 15, 2007 10:35 pm
Very well done. It took me a second to figure out why you used regex until I looked back up at all the params that can be used. What I really like is how you can "ignore" a param with a certain specific phrase. Very clever and very well thought out to create very little room for error alphanumeric-param wise :P
mIRC Snippet:
$multiremtok
Posted on Nov 15, 2007 10:35 am
Posted on Nov 15, 2007 10:35 am
Thanks, it's quite simple if you're fluent in token identifiers:
Let's say I had the string "this is my string of tokens"...
Now if we typed up //echo -a $multiremtok(this is my string of tokens,1,2,32) would return "my string of tokens" Because it removed the first token, this, and the second token, is.
Any more questions you have feel free to ask and I'll be glad to help. Although this should have been covered in the comments I put into the snippet.
Let's say I had the string "this is my string of tokens"...
Now if we typed up //echo -a $multiremtok(this is my string of tokens,1,2,32) would return "my string of tokens" Because it removed the first token, this, and the second token, is.
Any more questions you have feel free to ask and I'll be glad to help. Although this should have been covered in the comments I put into the snippet.
mIRC Snippet:
$multiremtok
Posted on Nov 14, 2007 5:51 pm
Posted on Nov 14, 2007 5:51 pm
Nice although I don't understand how to use it but it looks nice. WTG!!!
mIRC Snippet:
$matchedtok
Posted on Nov 14, 2007 3:21 pm
Posted on Nov 14, 2007 3:21 pm
Most certainly. But I won't change the way I make my comments, used to it by now. And I prefer that way.
mIRC Snippet:
$matchedtok
Posted on Nov 14, 2007 2:01 pm
Posted on Nov 14, 2007 2:01 pm
u can do this for lines and lines of comments in a script
:)
| Code: |
/* A Lot Of Comments W/O ;'s */ |
:)
mIRC Snippet:
$matchedtok
Posted on Nov 14, 2007 12:34 am
Posted on Nov 14, 2007 12:34 am
Yeah, I noticed those features which is why I said not bad. ;)
mIRC Snippet:
$matchedtok
Posted on Nov 13, 2007 10:45 pm
Posted on Nov 13, 2007 10:45 pm
Thanks xDaeMoN. But I do believe that mIRC's built-in $matchtok will only return one token. Meaning if I used: $matchtok(this is a string,s,1-,32) would only return this. (That's what I got when I tested it.) On the contrary, my snippet uses $gettok when retrieving data so you can use things such as 1-. I guess this is just an enhancement to $matchtok.






