alias chrwrite
Platform: mIRC
Published Nov 22, 2007
Updated Dec 25, 2007
Ok, this script transfers text into a managable $chr format.
so typing "/chrwrite Jesus Pwns You" returns:
"$+($chr(74),$chr(101),$chr(115),$chr(117),$chr(115)) $+($chr(80),$chr(119),$chr(110),$chr(115)) $+($chr(89),$chr(111),$chr(117))"
in result, typing:
"//echo -ta $+($chr(74),$chr(101),$chr(115),$chr(117),$chr(115)) $+($chr(80),$chr(119),$chr(110),$chr(115)) $+($chr(89),$chr(111),$chr(117))"
returns "Jesus Pwns You"
same as $chrwrite(Jesus Pwns You)
This is a variation that i created of /lettonumb, not sure who made that one, but im proud of this so dont be mean =/
You can paste this into remotes, or aliases, if you put it in aliases, remove the "alias"
alias chrwrite $iif($isid,return,echo -ta) $ $+ + $+ ( $+ $ $+ chr $+ $chr(40) $+ $replace($regsubex($1-,/(.)/g,$calc($lower($asc(1)-96)) $+ $chr(41) $+ $chr(44) $+ $ $+ chr $+ $chr(40)) $+ $chr(41) $+ $chr(41),$chr(44) $+ $ $+ chr $+ $chr(40) $+ $chr(41),$null,$chr(44) $+ $ $+ chr $+ $chr(40) $+ 32 $+ $chr(41) $+ $chr(44),$chr(41) $ $+ + $+ $chr(40))
;Shorter:
alias chrwrite $iif($isid,return,echo -ta) $!+( $+ $!chr( $+ $replace($remove($regsubex($1-,/(.)/g,$asc(1) $+ $+($chr(41),$chr(44),$!chr,$chr(40))) $+ $chr(41),$chr(44) $+ $!chr()),$+($chr(44),$!chr(32),$chr(44)),$+($chr(41) $!+,$chr(40))) $+ $chr(41)
;even shorter:
chrwrite $iif($isid,return,echo) $!+( $+ $replace($mid($regsubex($1-,/(.)/g,$+($!chr,$chr(40),$asc(\t),$chr(41),$chr(44))),1,-1),$+($chr(44),$!chr(32),$chr(44)),$+($chr(41) $!+,$chr(40))) $+ )