|
Joined: Jan 2003
Posts: 108
Vogon poet
|
OP
Vogon poet
Joined: Jan 2003
Posts: 108 |
Im trying to get a tokenized version of $chan($chan).mode but all i get is the spaced version ie: +mnrstlk 1337 leetstuff... I havent been able to separtate it by commas like id like or anything for that matter. Any ideas?
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
he wants a tokenized version of the modes, like untokenized +mn tokenized $1 = +, $2 = m, $3 = n << example but that cant be done without seperateing the modes 1st coz ya cant tokenize +mn i think thats what he wants he wants anyway
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
I thought he meant; +mn $+ , 1337, leetstuff.
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Umm well thats not tokens, and he specifically mentioned commas so I doubt thats what he meant.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
i know but he also mentioned tokenize...
new username: tidy_trax
|
|
|
|
Joined: Jan 2003
Posts: 108
Vogon poet
|
OP
Vogon poet
Joined: Jan 2003
Posts: 108 |
ya i was thinking like +mnrstlk,1337,leetstuff
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Well I don't know why the way $chan($chan).mode returns it is not good enough, but just use $replace:
$replace($chan($chan).mode,$chr(32),$chr(44))
|
|
|
|
Joined: Jan 2003
Posts: 108
Vogon poet
|
OP
Vogon poet
Joined: Jan 2003
Posts: 108 |
Thanks heh. I didnt know the $chr for space
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Well thats why you need to be like the cool people and have the ASCII table memorized!
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
or you can type //echo -a $asc(alt+0160)
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Thats a bad way to do it. You assume everyone uses fixedsys. Thats not the case. Only ASCII characters from 0 through 127 have standard representations. Any character above 127 is an implementation specific character so you can not be guaranteed that it is a space-like character. And btw, why would you type $asc(alt+0160)? If you knew to type alt+0160, then you already know the number of the character, 160.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
cos i didnt know that had anything to do with asci i thought that was just the key for that character =\
new username: tidy_trax
|
|
|
|
Joined: Jan 2003
Posts: 108
Vogon poet
|
OP
Vogon poet
Joined: Jan 2003
Posts: 108 |
Ive been trying to find a table for some time. heh you have a link?
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
start menu > run > charmap
new username: tidy_trax
|
|
|
|
Joined: Jan 2003
Posts: 108
Vogon poet
|
OP
Vogon poet
Joined: Jan 2003
Posts: 108 |
the only problem ive had with that, is it doesnt show the number:/
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
|
|
|
|
Joined: Jan 2003
Posts: 108
Vogon poet
|
OP
Vogon poet
Joined: Jan 2003
Posts: 108 |
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
Charmap does show the number, on the bottom left U+00<number> Though it is in Hex, you can use calc to convert if your not farmiliar. Do view>>scientific, then click the "hex" radio on the left, type the value, then click decimal. >:D
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
I think it only shows that in XP and possibly 2k. I don't recall seeing that in 9x.
|
|
|
|
|