Posts: 1622 Reputation: 50
36 / /
Joined: Jan 2006
RE: [Request] Auto Update Contact DP's
quote:Originally posted by KnRd_WC
Hi again artfuldodga
Maybe I found a way to update the DP automatically... (I am almost sure )
code:var x = new ActiveXObject("Scripting.FileSystemObject")
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext()) {
var Contact = e.item();
Pic=Contact.DisplayPicture
if (Pic) {
x.DeleteFile(Pic,true));
}
}
In fact, this script delete the DP cache. And, If a contact change his DP AFTER deleting the cache, the DP is updated. Here's the problem, because this script works only if a contact change his DP after unsin this function...
But I'm sure that somebody will find a solution... (Timer...)
This won't work, all you are doing is deleting the picture files from the cache, you still need the connection to be able to get the new DP no matter what. This can be done by opening a chat window (either you or your contact) or opening your contact's contact card (there might be others but I'm not aware of them). The only way to be able to do this that I can think of is with a bit of an annoying script that opens conversations with everyone after a specified amount of time, then closes them about a second later (to make sure you got a connection with all your contacts). The annoying part of this however is that you will have a whole lot of chat windows open up every so often and it will really slow your computer down while it opens and closes them all (I really don't recomend this).
This post was edited on 08-25-2006 at 03:49 PM by markee.