What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Removing DPs

Removing DPs
Author: Message:
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
38 / Male / Flag
Joined: Mar 2007
O.P. Removing DPs
Hey guys,

I've been messing around with a DP script, and went to change my DP manually earlier, and got stuck with a bit of a load time.
I'm wondering if there is a way to stop images being added to the "Regular Pictures" list.  There are some on it that I've seen on it for a matter of seconds and are still counting as regular.

Cheers
[Image: adsig.jpg]
04-01-2009 11:02 PM
Profile E-Mail PM Web Find Quote Report
kezz
Full Member
***

Avatar
'kezz.,

Posts: 231
Reputation: 6
32 / Male / Flag
Joined: Sep 2006
RE: Removing DPs
From what I know its a 'History', rather than a list of 'Regular' images. And I don't believe it would be possible to stop images appearing on the list.

Please correct me if I'm wrong.
[Image: 2764.png]
[Image: internet.png]
04-02-2009 04:31 AM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
RE: Removing DPs
Well, you might try deleting the current DP file before setting a new one. But this will not guarantee that you'll delete the DP set by your script. A user may change their DP before your script does.
04-02-2009 07:51 PM
Profile PM Find Quote Report
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
38 / Male / Flag
Joined: Mar 2007
O.P. RE: Removing DPs
OK, cheers guys.  I didn't reckon it could be done, but would be an idiot to give up instead of trying to find out.

Kezz: You have it absolutely correct, it is a history of all DPs, 'Regular Pictures' is just what its titled in Live, for whatever bizarre reason.

Smoky: I'll give it a try.  Doesn't matter too much about getting everything, just getting it down a bit would do me.  Heres hoping.

[Image: adsig.jpg]
04-03-2009 12:33 PM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
RE: Removing DPs
There have been numerous topics about an "OnEvent_DPChanged" function. There is currently a known solution:

JScript code:
var DP = ""; // Global variable specifying the user's DP
var Started = false; // Just a small check variable
var Time = 60000; // 1 minute
 
function OnEvent_Initialize(bool) {
    if(Messenger.MyStatus > 0) {
        // Assign DP the current picture
        DP = Messenger.MyDisplayPicture;
        // No need to do it twice
        Started = true;
        // Add the timer so we can check in one minute
        MsgPlus.AddTimer("TmrCheckDP" + Messenger.MyUserId,Time);
    }
}
 
// If Started is false, we'll call the Initialise function again
function OnEvent_SigninReady(Email) {
    if(!Started) OnEvent_Initialize(false);
}
 
function OnEvent_Timer(ID) {
    switch(ID) {
        case "TmrCheckDP" + Messenger.MyUserId:
            if(DP !== Messenger.MyDisplayPicture) {
                // Callback function
                OnEvent_MyDPChange(DP);
                // Re-assign DP
                DP = Messenger.MyDisplayPicture;
                // Re-add the timer so we can keep checking
                MsgPlus.AddTimer(ID,Time);
        return true;
    }
    return false;
}
 
function OnEvent_MyDPChange(OldDP) {
    // Do what you want to do here; e.g. delete the OldDP;
    // The 'new' DP can be accessed through Messenger.MyDisplayPicture
}

04-03-2009 02:23 PM
Profile PM Find Quote Report
« 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