Besides getting a list like the script above, you can also do:
//echo -a $chr(N)
Replace N with the number you're looking for. So, //echo -a $chr(58) as an example.
The reverse of that is $asc. So, if you need the ascii code rather than the character, you can use:
//echo -a $asc(N)
Replace N with the character you want the number for.
So, if I want to see what the ascii code for A is, I'd type //echo -a $asc(A). Remember that "A" and "a" have different ascii codes.
Certain mIRC commands (such as the token commands) need you to use the ascii code instead of the letter. And, sometimes, you need to use the $chr identifier for certain characters to display in a script. For example, if you want to do:
$gettok(Hey, that's cool
... the comma in the text would cause a problem because commas are used to separate the parts of the identifier. You could put that text into a variable and use that, or you could replace the comma with $chr(44), which is a comma as well -- type //echo -a $chr(44) . In this case, 32 is a space. 1 is just which token you want.
Just as one last note... using $asc(N) won't always work. Certain characters aren't possible in there, such as commas and parentheses. In those cases, you can either look up an ascii table, or you can mess around with characters near what you're looking for...
//echo -a $asc(#)
* /echo: insufficient parameters
//echo -a $asc($)
So, I'd guess $ and # would be close in number...
//echo -a $chr(35)
In that case, it was easy... just one number off. It's not always that easy, but if you want to avoid looking it up in an ascii table, you can do this and usually find it quickly. Eventually, you memorize all the main ascii codes (space, comma, period, parentheses, #, and if you're using sockets, <>'s).