mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2006
Posts: 10
does anyone have a script that does either one or know where i can get one

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
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:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jan 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2006
Posts: 10
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
-

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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

Joined: Jan 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2006
Posts: 10
yes dave thats what i need but i dont under stand how to use that

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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 **

Joined: Jan 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2006
Posts: 10
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

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
see pervious post replace words sayasc and saytext with umm asc and num i think you said.

Joined: Jan 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2006
Posts: 10
thank you much!


Link Copied to Clipboard