What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Unique request,well not so unique

Unique request,well not so unique
Author: Message:
hearwithoutyou
New Member
*

Please stay here by me

Posts: 4
33 / Male / –
Joined: Oct 2006
O.P. RE: Unique request,well not so unique
/*
----------
|Stylizer|
----------
*/

function OnGetScriptMenu(nLocation){
    var showbit = '';
    return "<ScriptMenu><MenuEntry Id=\"WndAbout\">About</MenuEntry></ScriptMenu>";
}

function OnEvent_MenuClicked(sMenuId,nLocation,iOriginWnd){
    if(sMenuId == "GetLatest"){ GetLatest(true); }
    else if(sMenuId == "Options"){
            var wnd = MsgPlus.CreateWnd('windows.xml','WndOptions');

    }
else if(sMenuId == "WndAbout"){
            var wnd = MsgPlus.CreateWnd('windows.xml','WndAbout');
    }
    else if(sMenuId == "Shownews"){ iOriginWnd.SendMessage("(*) "+latestnews); }
}




function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
sMessage = sMessage.replace("a","&#945;");
sMessage = sMessage.replace("b","b");
sMessage = sMessage.replace("c","¢");
sMessage = sMessage.replace("d","&#8706;");
sMessage = sMessage.replace("e","&#1108;");
sMessage = sMessage.replace("f","ƒ");
sMessage = sMessage.replace("g","g");
sMessage = sMessage.replace("h","&#1085;");
sMessage = sMessage.replace("i","&#8054;");
sMessage = sMessage.replace("j","j");
sMessage = sMessage.replace("k","&#1082;");
sMessage = sMessage.replace("l","&#8467;");
sMessage = sMessage.replace("m","&#1084;");
sMessage = sMessage.replace("n","&#951;");
sMessage = sMessage.replace("o","&#963;");
sMessage = sMessage.replace("p","&#961;");
sMessage = sMessage.replace("q","q");
sMessage = sMessage.replace("r","&#1103;");
sMessage = sMessage.replace("s","s");
sMessage = sMessage.replace("t","&#1090;");
sMessage = sMessage.replace("u","&#965;");
sMessage = sMessage.replace("v","&#957;");
sMessage = sMessage.replace("w","&#974;");
sMessage = sMessage.replace("x","&#967;");
sMessage = sMessage.replace("y","&#947;");
sMessage = sMessage.replace("z","&#658;");
return sMessage;
}

the above code works when i type in the message it changes what i type in to the defined letters.
the unicord chracters replace the original text properly
now the only problem is when two unicord characters are in the same sentence
example:
hi
^ the above sentence works but
: hello
that doesn't work
because there are two l's in the sentence only 1 l gets replaced the other stays the same
Can anyone help me in solving this
also can anyone tell me how i can make so that
when i open the a conversation with a contact i want
and type a command with a "/" this replacement technique is disabled. but it should not be disabled for everyone, only for that particular contact
Thnx for the help everyone
10-25-2006 09:46 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Unique request,well not so unique - by hearwithoutyou on 10-24-2006 at 03:26 PM
RE: Unique request,well not so unique - by matty on 10-24-2006 at 03:36 PM
RE: Unique request,well not so unique - by hearwithoutyou on 10-24-2006 at 03:41 PM
RE: Unique request,well not so unique - by matty on 10-24-2006 at 05:38 PM
RE: Unique request,well not so unique - by Spunky on 10-24-2006 at 08:13 PM
RE: Unique request,well not so unique - by matty on 10-24-2006 at 09:27 PM
RE: RE: Unique request,well not so unique - by Jesus on 10-25-2006 at 12:16 PM
RE: Unique request,well not so unique - by hearwithoutyou on 10-25-2006 at 08:32 AM
RE: Unique request,well not so unique - by hearwithoutyou on 10-25-2006 at 09:46 AM
RE: Unique request,well not so unique - by matty on 10-25-2006 at 12:10 PM
RE: Unique request,well not so unique - by matty on 10-25-2006 at 12:49 PM
RE: RE: Unique request,well not so unique - by Jesus on 10-25-2006 at 02:08 PM
RE: Unique request,well not so unique - by Spunky on 10-25-2006 at 02:20 PM
RE: Unique request,well not so unique - by matty on 10-25-2006 at 02:50 PM
RE: RE: Unique request,well not so unique - by Jesus on 10-25-2006 at 09:38 PM
RE: Unique request,well not so unique - by Spunky on 10-25-2006 at 02:52 PM
RE: Unique request,well not so unique - by RaceProUK on 10-25-2006 at 09:13 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On