Project

General

Profile

[alias] ASCII table / Unicode char conversion

Added by Mr. BS almost 11 years ago

When writing msl scripts is very common you need to convert a char to ascii table code, easy way is to use $asc(<char>)<tab> in inputbox, but what about a fancy prompt for even easier conversion? Check example bellow.

Video demo:

<video controls>
<source src="http://1.grn.cc/temp/2014-03-14_23-29-05.mp4&quot;>
</video>

Alias:

/alias /a editbox -a $+($,chr,$chr(40),$asc($iif($1,$1,$$?)),$chr(41))

Other example allowing multiples chars at one:

/alias /a editbox -a $regsubex($iif($1,$1,$$?),/(.)/g,$ $+ chr $+ $chr(40) $+ $asc(\1) $+ $chr(41) $chr(32))

Improved by kikuchi.

sharing is caring.