Shoutbox

[suggestion] DP/CE saved automatically - 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: [suggestion] DP/CE saved automatically (/showthread.php?tid=61373)

[suggestion] DP/CE saved automatically by Arobas on 06-25-2006 at 06:18 PM

I'd like to save DP/CE* during conversations automatically in a directory. I know it's possible, i got a program that had this feature but it doesn't work with WLM anymore.

There is already a script that can steal a DP but i don't see any utility.

Thank!

*DP = Display picture
*CE = Custom emoticons


RE: [suggestion] DP/Emoticons saver by matty on 06-25-2006 at 06:31 PM

code:
function OnEvent_ChatWndCreated(Wnd){
    for(var enumerator = new Enumerator(Wnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext()) {
        var Contact = enumerator.item();
        var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()

        Interop.Call('kernel32', 'CopyFileW', Contact.DisplayPicture, "c:\\display pictures\\"+Contact.Email+'_'+month + "." + day + "." + year+".png", false);
    }
}

If you have Chatlogging turned on and your using the X/HTML logs if you look in the My Chat Logs\Month\Images all the images will be there. Note they will be saved in PNG format so they will not be animated.
RE: [suggestion] DP/CE saved automatically by Arobas on 06-25-2006 at 06:52 PM

but you have to get a conversation with this person to get his DP and CE. thank anyway for this piece of code.. i'll test it :) If anyone have another solution.. i'll take it too!