mIRC Home    About    Download    Register    News    Help

Print Thread
#195652 28/02/08 03:10 PM
D
Dr_Destino
Dr_Destino
D
Hi all..
I would like how do make the Identifier $gettok a dynamic alias ?
That is, the delimiter of $gettok don't may have to specify myself but it must to find the delimiter himself

How I can to resolve this question ?

Sorry for bad english..

Joined: Aug 2003
Posts: 143
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 143
Hi

If i understund well you want to add as well the token that search in the text.

this is the text "|test1|test2|test3|test4|" and the token will be the "|"/$chr(124)

//var %x test1|test2|test3|test4 | echo -s $addtok( $gettok( %x, 1, 124), |, 0)

This will search for the 1 $chr(124) token and add a | to the end off the match.

Hope it was this what you want.
Good luck

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
If you don't know the delimiter for $gettok, how will a script figure it out for you? Now, you *can* find the position in a string of text that matches some search and then get the $chr value for the character after/before that position. But that requires you to know what you're looking for. If you know that, why wouldn't you know the delimiter? More specifics would help.


Link Copied to Clipboard