What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Replacing Text Using Scripts (I think I'm dumb lol)

[Help] Replacing Text Using Scripts (I think I'm dumb lol)
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol)
quote:
Originally posted by Joereynolds89
lol thankyou Pai, finally got it all working :( if anyone actually wants to use it ill upload but all it does is change your font :S but i wanted it :P Thankyou to everyone that helped!

Segosa, i did all yours, i dont understand yours as i do Pai's :P but it didnt work :(

code:
function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
    if (!sMessage.match('www') && !sMessage.match('http') && sMessage.charAt(0) != '/')
    {
        var a = [ 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z' ];
        var o = "", c;
        str = str.toLowerCase();
        for (var i = 0; i < str.length; i++)
        {
            c = str.charCodeAt( i );
            if (c >= 97 && c <= 122)
                o += a[c - 97];
            else o += str.charAt( i );
        }
        return o;
    }
    return sMessage;
}
function OnEvent_Uninitialize(MessengerExit)
{
}

Remember capitals are only for example :D


Crap, sorry, I forgot to change something.

Since you've already got your own working, it won't matter, but here's the working code:

code:
function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
    if (!sMessage.match('www') && !sMessage.match('http') && sMessage.charAt(0) != '/')
    {
        var a = [ 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z' ];
        var o = "", c;
        var str = sMessage.toLowerCase();
        for (var i = 0; i < str.length; i++)
        {
            c = str.charCodeAt( i );
            if (c >= 97 && c <= 122)
                o += a[c - 97];
            else o += str.charAt( i );
        }
        return o;
    }
    return sMessage;
}
function OnEvent_Uninitialize(MessengerExit)
{
}
The previous sentence is false. The following sentence is true.
07-13-2006 10:04 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 10:51 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by noroom on 07-11-2006 at 10:53 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:11 PM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by jmccarroll on 07-11-2006 at 11:17 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 11:16 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:17 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 11:33 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:37 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Nathan on 07-11-2006 at 11:41 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Silentdragon on 07-11-2006 at 11:46 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:57 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 07:26 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 07:29 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 01:05 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by noroom on 07-12-2006 at 01:31 PM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 01:37 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-12-2006 at 01:47 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-12-2006 at 01:55 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 02:25 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-12-2006 at 05:48 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 06:22 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Silentdragon on 07-12-2006 at 07:25 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 07:51 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-12-2006 at 09:35 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-13-2006 at 12:43 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-13-2006 at 08:54 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-13-2006 at 09:57 AM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-13-2006 at 10:04 AM


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