quote:
Originally posted by waterbottle
What I'm trying to do first is get the ascii equivalent of the char.
for example, ' ' = 32, 'a' = 97, 'b' = 98, 'A' = 65, '1' = 49.
in that case all you need todo is use charCodeAt, like so
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
return '' + Message.charCodeAt(0);
}
And that will return the ascii code of the first char of the message