Shoutbox

Removing DPs - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Removing DPs (/showthread.php?tid=90023)

Removing DPs by ArkaneArkade on 04-01-2009 at 11:02 PM

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


RE: Removing DPs by kezz on 04-02-2009 at 04:31 AM

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.


RE: Removing DPs by SmokingCookie on 04-02-2009 at 07:51 PM

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.


RE: Removing DPs by ArkaneArkade on 04-03-2009 at 12:33 PM

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.


RE: Removing DPs by SmokingCookie on 04-03-2009 at 02:23 PM

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
}