Can somebody tell me how to modify this to repeat how ever many times the first letter appears, and also how to make it so it dosnt use the replacment if it detects www or http etc!
Im only using capitals as an example, in fact they are different symbols
Joe
code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
sMessage = sMessage.replace("a","A");
sMessage = sMessage.replace("b","B");
sMessage = sMessage.replace("c","C");
sMessage = sMessage.replace("d","D");
sMessage = sMessage.replace("e","E");
sMessage = sMessage.replace("f","F");
sMessage = sMessage.replace("g","G");
sMessage = sMessage.replace("h","H");
sMessage = sMessage.replace("i","I");
sMessage = sMessage.replace("j","J");
sMessage = sMessage.replace("k","K");
sMessage = sMessage.replace("l","L");
sMessage = sMessage.replace("m","M");
sMessage = sMessage.replace("n","N");
sMessage = sMessage.replace("o","O");
sMessage = sMessage.replace("p","P");
sMessage = sMessage.replace("q","Q");
sMessage = sMessage.replace("r","R");
sMessage = sMessage.replace("s","S");
sMessage = sMessage.replace("t","T");
sMessage = sMessage.replace("u","U");
sMessage = sMessage.replace("v","V");
sMessage = sMessage.replace("w","W");
sMessage = sMessage.replace("x","X");
sMessage = sMessage.replace("y","Y");
sMessage = sMessage.replace("z","Z");
return sMessage;
}
function OnEvent_Uninitialize(MessengerExit)
{
}