does anyone have a script that does either one or know where i can get one
alias ascii {
if ($len($1) > 0) { grcho Ascii $+ $1 $+ $chr(93) $+: $+ $chr($1) | halt }
window -moaC @Ascii 200 200 400 200 fixedsys
set %chr.var 1
:loop
if (%chr.var > 255) { goto done }
.aline @Ascii Ascii: %chr.var $+ : $+ $chr(%chr.var)
inc %chr.var 1
goto loop
:done
}
put that in your remote, then type: /ascii, not shure if this is what you looking for tho :tongue:
i want something that when i type in my normal words
hello it comes out as numbers
360 357 364 364 367
and that script you have me says
-
GRCHO Unknown command
-
like you want to go from
"ABC" to "65 66 67" and back again ?
alias text2asc { bset -t &binvar 1 $1 | return $bvar(&binvar,1,999) }
alias asc2text { bset &binvar 1 $1 | return $bvar(&binvar,1,999).text }
examples of use...
//echo -a The asc values of the word TeSt are $text2asc(TeSt)
The asc values of the word TeSt are 84 101 83 116
//var -s %blah = $asc2text(65 66 67 32 68 69 70)
* Set %blah to ABC DEF
yes dave thats what i need but i dont under stand how to use that
Sorry my foult, i use a alias to echo the txt.. change: grcho to echo, then it should work.. but it only show you the ascii value, and wont do that you asked for.. :tongue:
i dont know what to tell you, i dont know how you want to use it for. You asked for a convertyer from one to the other thats what i gave ya.
they are customer identifiers
say you wanted to type in text in a channel but have the asc sent you would write your self an exatr alias like this
alias sayasc { say $text2asc($1-) }
then you type /sayasc ABC DEF
<yournick> 65 66 67 32 68 69 70
OR
wanted to type asc and say the text to channel
alias saytext { say $asc2text($1-) }
/saytext 65 32 66 32 67
<yournick> A B C
** beyond this its up to you what u use them for **
Dave i get yours now but is there a way i can get it so when i type /asc hello
it sends the numbers to that channel
and when i type
/nub 98 99 100
it sends the text to the channel
see pervious post replace words sayasc and saytext with umm asc and num i think you said.