What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Display Picture switches back

Display Picture switches back
Author: Message:
Genesis Genome
New Member
*


Posts: 6
Joined: Feb 2009
O.P. RE: Display Picture switches back
Javascript code:
var DelayLength = 5000;
var FolderWithEmotes = "";
var DParray = new Array(
    "",
    "1.gif",
    "2.gif",
    "3.gif"
);
String.prototype.toArray = function(){
    return this.split(' ');
}
 
function OnEvent_Timer(timerID)
{
    if(timerID == "DPdelay")
    {
        Messenger.MyDisplayPicture = DParray[0];
    }
}
 
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    var index = 0;
    var msgwords = Message.toArray();
    for (var i=0;i<msgwords.length;i++){
 
        if(msgwords[i] == "blah"){
            index = 1;
        }
    }  
 
    if (index > 0) {
        DParray[0] = Messenger.MyDisplayPicture;
        Messenger.MyDisplayPicture = FolderWithEmotes + DParray[index];
        MsgPlus.AddTimer("DPdelay", DelayLength)
    }
    index = 0;
}


basically it scans a message for a word, and if its there it sets your DP to a specific image for a few seconds and then switches back.
And it does that, its just that sometimes it'll switch back to the temporary image.
02-02-2009 10:25 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Display Picture switches back - by Genesis Genome on 02-02-2009 at 12:56 AM
RE: Display Picture switches back - by matty on 02-02-2009 at 02:42 AM
RE: Display Picture switches back - by Genesis Genome on 02-02-2009 at 10:25 AM
RE: Display Picture switches back - by CookieRevised on 02-02-2009 at 02:59 PM
RE: Display Picture switches back - by Genesis Genome on 02-02-2009 at 03:51 PM
RE: RE: Display Picture switches back - by CookieRevised on 02-02-2009 at 04:29 PM
RE: Display Picture switches back - by Matti on 02-02-2009 at 04:03 PM
RE: Display Picture switches back - by Genesis Genome on 02-02-2009 at 04:10 PM
RE: Display Picture switches back - by Matti on 02-02-2009 at 04:14 PM
RE: Display Picture switches back - by Genesis Genome on 02-02-2009 at 05:17 PM
RE: RE: Display Picture switches back - by CookieRevised on 02-02-2009 at 05:43 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