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

Pages: (2): « First « 1 [ 2 ] Last »
Script Work for One Account
Author: Message:
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: RE: Script Work for One Account
quote:
Originally posted by [b
markee[/b]]
code:
//write as many strings separated by commas as you want.  have a single quoted string if you only want one.
var emails = new Array("<put your email address here","<a
second email address if you want","<want a third one as well>");
function OnEvent_ChatWndSendMessage(pChatWnd,sMessage){
    for(i in emails){
        if (Messenger.MyUserId == emails[i]){
            return sMessage.replace(/:(?:\)|D|O|P|-\#|S|\||\(|-\*|\$|\@)|\((?:h|brb|6|co|a|e|t|i|mp|p|~|o|um|%|xx|au|ap|so|y|n|yn|h5|m|ip|#|r|\*|st|pi|b|d|c|&|@|tu|sn|bah|nah|l|u|k|f|w|z|x|\{\)\(\})\)|8-\|\^o\)|\+o\(|8o\|/gi,function($1){
                if($1.charAt(0) === ":"){
                    $1.replace(/:-?/,"=");
                }else if($1.charAt(0 === "("){
                    $1.replace(/\(|\)|\*|&/g,function($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|";
                    }
                }
            });
        }
    }
}

:O

This post was edited on 12-19-2007 at 02:17 PM by davidpolitis.
12-19-2007 01:46 PM
Profile PM Find Quote Report
aNILEator
Skinning Contest Winner
*****

Avatar
...in the wake of the aNILEator

Posts: 3718
Reputation: 90
35 / Male / Flag
Joined: Oct 2003
Status: Away
RE: Script Work for One Account
kinda nice to see a simple old script and my emoticons still getting some attention :)

I was going to animate the bunny ('.') and I'm :im: too

This post was edited on 12-19-2007 at 02:39 PM by aNILEator.
12-19-2007 02:39 PM
Profile PM Web Find Quote Report
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
aNILEator
Skinning Contest Winner
*****

Avatar
...in the wake of the aNILEator

Posts: 3718
Reputation: 90
35 / Male / Flag
Joined: Oct 2003
Status: Away
RE: Script Work for One Account
Don't fancy making a nice plsc f it then Markee :P

P.S. I wanted to create a proper pack/content installer for this. If when I get home I were to animate the bunny and I'm and maybe some others does anyone know how to create an installer/content installer?
12-23-2007 12:07 PM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Script Work for One Account
I dont want to make a plsc, I'm on holidays so someone else can do t for me :refuck:
[Image: markee.png]
12-23-2007 12:11 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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