How can I programmatically set Windows Live Messenger (currently using 8.5.1302.1018) display picture. Possible solutions can be in C++, .NET or VB. Even just a hint could be useful.
A:
The first resource to look at would be the MSN API: http://dev.live.com/messenger/
I think you will find the answer there.
Filip Ekberg
2008-12-22 17:50:58
I was not aware that Windows Live Messenger had an API. Will take a look. Thanks for the pointer.
smink
2008-12-22 17:57:19
No problem, have fun!
Filip Ekberg
2008-12-22 18:01:46
+1
A:
There is an open source project called MSNP-Sharp that you should look at.
You can use this to connect to MSN and set your profile picture. Here's an example of setting the image:
try
{
Image fileImage = Image.FromFile(ConfigurationSettings.AppSettings["ImageFileName"]);
DisplayImage displayImage = new DisplayImage();
displayImage.Image = fileImage;
m_Messenger.Owner.DisplayImage = displayImage;
m_Messenger.Nameserver.StorageService.UpdateProfile(fileImage, "MyPhoto");
}
catch
{
LogError(new StackTrace(true), "Error adding avatar image.");
}
scurial
2009-03-03 00:24:11