mIRC Home    About    Download    Register    News    Help

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

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

#30620 18/06/03 03:29 PM
Joined: May 2003
Posts: 2,265
P
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
#30621 18/06/03 03:45 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I thought he meant;
+mn $+ , 1337, leetstuff.

#30622 18/06/03 03:46 PM
Joined: Dec 2002
Posts: 2,809
C
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.

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


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

#30625 18/06/03 04:25 PM
Joined: Dec 2002
Posts: 2,809
C
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))

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

#30627 18/06/03 04:47 PM
Joined: Dec 2002
Posts: 2,809
C
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!

#30628 18/06/03 05:24 PM
Joined: May 2003
Posts: 2,265
P
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
#30629 18/06/03 05:42 PM
Joined: Dec 2002
Posts: 2,809
C
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.

#30630 18/06/03 05:46 PM
Joined: May 2003
Posts: 2,265
P
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
#30631 18/06/03 06:08 PM
Joined: Jan 2003
Posts: 108
H
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?

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


new username: tidy_trax
#30633 18/06/03 06:12 PM
Joined: Jan 2003
Posts: 108
H
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:/

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

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

#30636 18/06/03 07:42 PM
Joined: Jan 2003
Posts: 3,012
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
#30637 18/06/03 07:43 PM
Joined: Dec 2002
Posts: 2,809
C
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.

#30638 18/06/03 07:45 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Give, me a sec *boots up old 98se post* i'll tell you in a sec >:D


-KingTomato
#30639 18/06/03 07:47 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I'd check on my WinME machine but apparently MS decided charmap shouldn't be included by default with WinME frown

#30640 18/06/03 07:53 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Well, your kinda right. In 98se it shows the keystroke (if listed on the keyboard) and if its not, then shows ascii. If you really want a one for mirc though, I posted one about a coule weeks back that ppl seemed to enjoy.
Code:

/asciitable {
  /window @ascii
  /aline $color(info) @ascii Ascii: $chr(9) Value:
  /aline $color(info) @ascii $str(-, 25)
  /set -u0 %ascii 0
  while (%ascii &lt;= 255) {
    /unset %info
    if (%ascii == 0) /set -u0 %info $+($,NULL)
    else if (%ascii == 2) /set -u0 %info BOLD (Ctrl+B)
    else if (%ascii == 3) /set -u0 %info 12C4OL8OR (Ctrl+K)
    else if (%ascii == 13) /set -u0 %info Enter/Return
    else if (%ascii == 15) /set -u0 %info PLAIN (Ctrl+O)
    else if (%ascii == 22) /set -u0 %info REVERSE (Ctrl+R)
    else if (%ascii == 27) /set -u0 %info Escape
    else if (%ascii == 31) /set -u0 %info UNDERLINE (Ctrl+U)
    else if (%ascii == 32) /set -u0 %info (Space)
    else if (%ascii == 160) /set -u0 %info (Hard Space)
    /aline $color(info) @ascii %ascii $chr(9) $+($chr(%ascii),) $chr(9) %info
    /inc -u0 %ascii
  }
  /aline $color(info) @ascii $str(-, 25)
  /aline $color(info) @ascii Ascii: $chr(9) Value:  
}


-KingTomato
Page 1 of 2 1 2

Link Copied to Clipboard