What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script Work for One Account

Script Work for One Account
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Script Work for One Account
After a bit of work WDZ told me what I was doing wrong with my script (such a simple thing that I should have noticed myself :dodgy:).  Anyway, here is my new version of the script code, add your email to the array (add more or take them away as you please).

code:
var emails = new Array("email@address.com","another@email.com","yet_another@emailaddy.com");//Add your email to this array
var re = /:(?:|[DOP()$@S]|-[#*])|\((?:[6e~#r*d&@lkfwz%]|co?|au?|[ima]p?|um?|x{1,2}|yn?|h5?|s[nto]?|pi?|tu?|[nb](?:ah)?|brb|\{\)\(\})\)|8(?:-|o)\||\^o\)|\+o\(/gi;
function OnEvent_ChatWndSendMessage(pChatWnd,sMessage){
    for(i in emails){
        if(Messenger.MyEmail == emails[i]){
            return sMessage.replace(re,function($1){
                Debug.Trace($1);
                if($1.charAt(0) === ":"){
                    return $1.replace(/:-?/,"=");
                }else if($1.charAt(0) === "("){
                    return $1.replace(/\(|\)|\*|&/g,function($1){
                        Debug.Trace($1);
                        switch($1){
                            case "(": return "{";
                            case ")": return "}";
                            case "*": return "*2";
                            case "&": return "dog";
                        }
                    });
                }else{
                    switch($1){
                        case "8-|": return "8o)";
                        case "^o)": return "=/";
                        case "\+o(": return "=o(";
                        case "8o|": return "=o|";
                    }
                }
            });
        }
    }
}

This post was edited on 12-23-2007 at 12:01 PM by markee.
[Image: markee.png]
12-23-2007 12:01 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Work for One Account - by Eddie on 12-19-2007 at 03:05 AM
RE: Script Work for One Account - by MeEtc on 12-19-2007 at 03:21 AM
RE: Script Work for One Account - by Eddie on 12-19-2007 at 03:34 AM
RE: Script Work for One Account - by prashker on 12-19-2007 at 03:37 AM
RE: Script Work for One Account - by Eddie on 12-19-2007 at 03:40 AM
RE: Script Work for One Account - by davidpolitis on 12-19-2007 at 05:01 AM
RE: Script Work for One Account - by aNILEator on 12-19-2007 at 05:29 AM
RE: RE: Script Work for One Account - by davidpolitis on 12-19-2007 at 05:34 AM
RE: Script Work for One Account - by aNILEator on 12-19-2007 at 05:36 AM
RE: Script Work for One Account - by Eddie on 12-19-2007 at 05:39 AM
RE: Script Work for One Account - by aNILEator on 12-19-2007 at 02:39 PM
RE: Script Work for One Account - by markee on 12-23-2007 at 12:01 PM
RE: Script Work for One Account - by aNILEator on 12-23-2007 at 12:07 PM
RE: Script Work for One Account - by markee on 12-23-2007 at 12:11 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