What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Changing user display picture

Changing user display picture
Author: Message:
Dick Donny
New Member
*


Posts: 4
Joined: Jun 2005
O.P. Changing user display picture
Hi

Just hoping on the off chance someone may have already figured this out ... I would like to replace the user picture with an image determined via code (ie a plugin).

I've discovered that the images are stored in the tiles directory under application settings, and it looks like they are compressed during this process.  However, I can't work out how to determine which one is the active tile, nor how to get a new picture in there in the correct format.  Not tried yet, but also unsure how to force a reload/refresh of the picture.

Any advice would be appreciated.
06-17-2005 10:18 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: Changing user display picture
IIRC, you used to be able to do this using the messenger api with this code:
code:
oMessenger.MyPropery(2) = <location of file>
with oMessenger beeing and instance of the MessengerAPI
not sure if this code is still compatable with the newer versions of messenger.

Also, the images stored in the tiles directory are just png's renamed to dat's. But to use the directory to add a display picture you have to edit the map.dat file, which is encrypted. So the api method is the best way to change the display picture (assuming it still works)

Hope this helps, and please post back here if you're having any problems.

This post was edited on 06-17-2005 at 10:29 PM by Plik.
06-17-2005 10:29 PM
Profile PM Find Quote Report
Dick Donny
New Member
*


Posts: 4
Joined: Jun 2005
O.P. RE: Changing user display picture
Thanks for the reply.

Unfortunately this now raises an error |-) .... but it does give me a place to start so thanks again.

Has anybody else any suggestions?
06-17-2005 10:41 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Changing user display picture
oMessenger.MyProperty(2) = <location of file>

in case the error was just because madman missed a t :P
06-22-2005 05:00 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Changing user display picture
code:
'This is just an example for calling the oMessenger object passed through the Initialize Function into a Variable.
'Make sure to set a reference to the MessengerAPI Type Library


Public WithEvents MessengerAPI As MessengerAPI.Messenger

Public Function Initialize( _
                           ByVal nVersion As Long, _
                           ByVal sUserEmail As String, _
                           ByVal oMessenger As Object _
                          ) As Boolean
    Initialize = True
    Set MessengerAPI = oMessenger
    ' This will set the Display Picture to Vortec Space.jpg (This is wallpaper from Windows XP)
    MessengerAPI.MyProperty(2) = "C:\Windows\Web\Wallpaper\Vortec space.jpg"
End Function


This post was edited on 06-22-2005 at 06:33 PM by matty.
06-22-2005 06:25 PM
Profile E-Mail PM Find Quote Report
Dick Donny
New Member
*


Posts: 4
Joined: Jun 2005
O.P. RE: Changing user display picture
OK guys ... thanks for your suggestions and all that, but maybe I am not just been very clear.

I am using version 7 and the sdk documentation clearly states that the MyProperty method is reserved ... ie read only

Error Code 0x80070057 Returned in all cases. This method is reserved for future use.

Just to be 100% clear ... I confirmed this with a noddy application.

Can anybody suggest another method to do this?

Thanks
06-23-2005 07:41 PM
Profile E-Mail PM Find Quote Report
TheBlasphemer
Senior Member
****

Avatar

Posts: 714
Reputation: 47
36 / – / –
Joined: Mar 2004
RE: Changing user display picture
Which version of MSN Messenger are you using?
[Image: theblasp.png]
06-23-2005 07:55 PM
Profile PM Find Quote Report
Dick Donny
New Member
*


Posts: 4
Joined: Jun 2005
O.P. RE: Changing user display picture
version 7 ..... build 7.0.0813 :)
06-23-2005 07:58 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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