mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Tokenized version of #30618 18/06/03 02:24 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
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?

Re: Tokenized version of #30619 18/06/03 03:26 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
What?

Re: Tokenized version of #30620 18/06/03 03:29 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
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 smile


new username: tidy_trax
Re: Tokenized version of #30621 18/06/03 03:45 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I thought he meant;
+mn $+ , 1337, leetstuff.

Re: Tokenized version of #30622 18/06/03 03:46 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Umm well thats not tokens, and he specifically mentioned commas so I doubt thats what he meant.

Re: Tokenized version of #30623 18/06/03 03:57 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i know but he also mentioned tokenize...


new username: tidy_trax
Re: Tokenized version of #30624 18/06/03 04:11 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
ya i was thinking like +mnrstlk,1337,leetstuff

Re: Tokenized version of #30625 18/06/03 04:25 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
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))

Re: Tokenized version of #30626 18/06/03 04:36 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Thanks heh. I didnt know the $chr for space smirk

Re: Tokenized version of #30627 18/06/03 04:47 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well thats why you need to be like the cool people and have the ASCII table memorized!

Re: Tokenized version of #30628 18/06/03 05:24 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
or you can type //echo -a $asc(alt+0160)


new username: tidy_trax
Re: Tokenized version of #30629 18/06/03 05:42 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
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.

Re: Tokenized version of #30630 18/06/03 05:46 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
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
Re: Tokenized version of #30631 18/06/03 06:08 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Ive been trying to find a table for some time. heh you have a link?

Re: Tokenized version of #30632 18/06/03 06:10 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
start menu > run > charmap


new username: tidy_trax
Re: Tokenized version of #30633 18/06/03 06:12 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
the only problem ive had with that, is it doesnt show the number:/

Re: Tokenized version of #30634 18/06/03 06:17 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809

Re: Tokenized version of #30635 18/06/03 06:19 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
weeee thanks

Re: Tokenized version of #30636 18/06/03 07:42 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
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
Re: Tokenized version of #30637 18/06/03 07:43 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
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.

Page 1 of 2 1 2