Hi.
What shall I shift "start" out with?
Here is my code:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
var Tjek = Message.indexOf("Antal tegn sendt:",start);
if(Tjek == "-1")
{
Lille = Message.toLowerCase();
for (i=0;i<Lille.length;i++)
{
if (Lille.charCodeAt < "123" && Lille.charCodeAt > "96")
{
Alfabet[Lille.charCodeAt-97]++;
}
}
}
return Message;
}