OnEvent_MyDisplayPictureChange Event Handler - 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: OnEvent_MyDisplayPictureChange Event Handler (/showthread.php?tid=76893) OnEvent_MyDisplayPictureChange Event Handler by mynetx on 08-20-2007 at 01:14 PM
Does anybody know an event handler for this, or is the only way to detect a display picture change a Timer while comparing the current picture file size with a copy created on last run of Timer? RE: OnEvent_MyDisplayPictureChange Event Handler by MeEtc on 08-20-2007 at 01:43 PM
code: RE: OnEvent_MyDisplayPictureChange Event Handler by Spunky on 08-20-2007 at 01:46 PM The file size would be an inacurrate way of doing things... Just been looking to see if the Messenger.MyDisplayPicture uses distinguishable filenames, but it says not to store them for future use so I don't think thats reliable either RE: OnEvent_MyDisplayPictureChange Event Handler by mynetx on 08-20-2007 at 01:47 PM
@MeEtc: RE: OnEvent_MyDisplayPictureChange Event Handler by Patchou on 08-20-2007 at 02:19 PM I'm sorry, I cannot provide an event handler for this right now... when I can add one, I will. RE: RE: OnEvent_MyDisplayPictureChange Event Handler by XP1 on 01-19-2009 at 07:23 AM
quote:Now that the new Messenger Plus! Live for WLM 2009 is almost finalized, is Patchou ready for adding this? Sorry for bumping, but I would really like an OnEvent_MyDisplayPictureChange event handler. I don't want this tread to be forgotten. Patchou, can you put this feature on your to-do list so you won't forget? RE: OnEvent_MyDisplayPictureChange Event Handler by mynetx on 01-19-2009 at 04:02 PM
quote:XP1, I've put my suggestion on an internal list now, so that it won't be forgotten. Thanks for reminding! Remember though that it might still not be possible to add the Event Handler, depending on the internal APIs and possible hooks. RE: OnEvent_MyDisplayPictureChange Event Handler by CookieRevised on 01-19-2009 at 08:46 PM
quote: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. RE: RE: OnEvent_MyDisplayPictureChange Event Handler by XP1 on 01-20-2009 at 01:09 AM
quote:Thanks. quote:Yeah, this won't be accurate when someone zips up display pictures into an archive that strips away the date and time information. Thus, when the archive is extracted, all of the dates / times are re-set to the same current date / time (or pre-defined date / time set at archive creation). Using file hashes is probably the best way to go. RE: OnEvent_MyDisplayPictureChange Event Handler by mynetx on 01-20-2009 at 09:18 AM I have thrown together a small demo script providing you the event handler OnEvent_MyDisplayPictureChange. Read the _main.js inside the script pack; it contains commented code so you see what it does. It works with the MD5 hash of the display picture. |