$asc_() - Multiple ASCII search/Lookup!

By Lindrian on Sep 23, 2007

I made this alias, mainly cause I was tried of having to type each letter on its own.
So now, all you have to do it:
//echo -a $asc_(this is some test) and it will return:
Converted (ascii) -> " t " = 116 " h " = 104 " i " = 105 " s " = 115 " Space " = 32 " o " = 111 " m " = 109 " e " = 101

It will only mentioned a letter once, to avoid spam etc.

Enjoy!

Comments

Sign in to comment.
Korvin   -  Mar 04, 2008

you should make this work backwards =p $chr_(44,160,32)
returns 44 = , 160 = space 32 = space

 Respond  
Warder   -  Mar 04, 2008

Cool idea, i decided to remake this abusing regex =P

alias asc_ return $regsubex($1-,/(.)/g,$+($replace(\\1,$chr(2),Bold,$chr(3),Color,$chr(15),Reset,$chr(22),Reverse,$chr(31),Underline,$chr(32),Space),=,$qt($asc(\\1)),$chr(32)))
 Respond  
guest598594   -  Mar 04, 2008

example, $chr(44) == \",\"

you can find out the 44 by doing $asc(,) 44

if you type //echo -a $asc_(ascii codes for these words) , it\'ll return the ASCII codes for each character that is in \"ascii codes for these words\"

 Respond  
UrBaN SoLdIeR   -  Mar 04, 2008

i\'m sorry if i seem completely naive, but what exactly does the script do?

 Respond  
UrBaN SoLdIeR   -  Mar 04, 2008

i\'m sorry if i seem completely naive, but what exactly does the script do?

 Respond  
Rebellious   -  Dec 04, 2007

Why not make this a regular alias since the main purpose is to retrieve the info? Or, you could make it both an alias and an identifier using something like this:

Since it could be used in other scripts as well. Just makes it easier for personal use.

Otherwise, not a bad little code you got here.

 Respond  
guest598594   -  Sep 26, 2007

this is a good idea, and you even incorporated the colors and underline and stuff like that

 Respond  
Lindrian   -  Sep 24, 2007

Thanks :)
No rating though :<

 Respond  
token   -  Sep 23, 2007

excllent coding Lindrian, nice job =)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.