$asc_() - Multiple ASCII search/Lookup!
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 6.5 |
| Scores Submitted | 2 |
| Date Added | Sep 23, 2007 |
| Last Updated | Sep 23, 2007 |
| Tags | ascii lookup multiple search |
|
|
Introduction
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!
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Sep 23, 2007 6:40 pm
Posted on Sep 23, 2007 6:40 pm
excllent coding Lindrian, nice job =)
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Sep 24, 2007 1:05 pm
Posted on Sep 24, 2007 1:05 pm
Thanks :)
No rating though :<
No rating though :<
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Sep 26, 2007 8:12 pm
Posted on Sep 26, 2007 8:12 pm
this is a good idea, and you even incorporated the colors and underline and stuff like that
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Dec 4, 2007 5:16 pm
Posted on Dec 4, 2007 5:16 pm
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.
| Code: |
| alias asc_ { if ($1) { var %x = $left($regsubex($1-,/(.)/g,$asc(\\1) $chr(32)),-1), %i = $numtok(%x,32), %t = 1, %z, %ö while (%t <= %i) { var %c = $gettok(%x,%t,32) if (!$istok(%z,%c,32)) { var %y = $replace($chr(%c),$chr(2),Bold,$chr(3),Color,$chr(15),Reset,$chr(22),Reverse,$chr(31),Underline,$chr(32),Space) %ö = %ö \"4 %y \" = %c %z = %z %c } inc %t } $iif($isid,return %ö, echo -a Converted (ascii) -> %ö) } else $iif($isid,return $false,echo -a * /asc_: insufficient parameters) } |
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.
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Mar 4, 2008 2:43 pm
Posted on Mar 4, 2008 2:43 pm
i\'m sorry if i seem completely naive, but what exactly does the script do?
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Mar 4, 2008 2:43 pm
Posted on Mar 4, 2008 2:43 pm
i\'m sorry if i seem completely naive, but what exactly does the script do?
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Mar 4, 2008 2:49 pm
Posted on Mar 4, 2008 2:49 pm
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\"
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\"
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Mar 4, 2008 4:13 pm
Posted on Mar 4, 2008 4:13 pm
Cool idea, i decided to remake this abusing regex =P
| Code: |
| 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))) |
mIRC Snippet:
$asc_() - Multiple ASCII search/Lookup!
Posted on Mar 4, 2008 5:53 pm
Posted on Mar 4, 2008 5:53 pm
you should make this work backwards =p $chr_(44,160,32)
returns 44 = , 160 = space 32 = space
returns 44 = , 160 = space 32 = space







