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

OnEvent_MyDisplayPictureChange Event Handler
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: OnEvent_MyDisplayPictureChange Event Handler
quote:
Originally posted by mynetx
@SpunkyLoveMuff:
The file names are the originals from Messenger. Even if the picture is updated by the user (or by another script), the file name won't change, whereas if you compare the bytes, it is very unlikely that two different images have the same size.
Dunno if I understood you correctly, but the chance that two different DPs have the same filesize IS likely. So, this is not a good way to see if there is another DP.

The only foolproof method you have and need to implement is comparing the file hash with the hash of the previous DP (of that _same_ user; important!). In essence, comparing the file byte per byte...

A faster method would be to check the filechange date and time. Though this isn't as accurate as comparing byte per byte by the use of a hash (the datetime can be changed by the user using 3rd party software and other Windows APIs), it is maybe accurate enough in most cases.

;)

This post was edited on 01-19-2009 at 08:50 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-19-2009 08:46 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
OnEvent_MyDisplayPictureChange Event Handler - by mynetx on 08-20-2007 at 01:14 PM
RE: OnEvent_MyDisplayPictureChange Event Handler - by MeEtc on 08-20-2007 at 01:43 PM
RE: OnEvent_MyDisplayPictureChange Event Handler - by Spunky on 08-20-2007 at 01:46 PM
RE: OnEvent_MyDisplayPictureChange Event Handler - by mynetx on 08-20-2007 at 01:47 PM
RE: OnEvent_MyDisplayPictureChange Event Handler - by Patchou on 08-20-2007 at 02:19 PM
RE: RE: OnEvent_MyDisplayPictureChange Event Handler - by XP1 on 01-19-2009 at 07:23 AM
RE: OnEvent_MyDisplayPictureChange Event Handler - by mynetx on 01-19-2009 at 04:02 PM
RE: OnEvent_MyDisplayPictureChange Event Handler - by CookieRevised on 01-19-2009 at 08:46 PM
RE: RE: OnEvent_MyDisplayPictureChange Event Handler - by XP1 on 01-20-2009 at 01:09 AM
RE: OnEvent_MyDisplayPictureChange Event Handler - by mynetx on 01-20-2009 at 09:18 AM


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