Send Message via MSN Messenger

I want to send message and file from MSN Messenger to MSN Messenger with C#.
When MSN Messenger opened. I want to control it. Change nickname, send message to added contacts etc.
How can I do it?

Sorry for my bad English.
Who is Participating?
chandra_darbhaConnect With a Mentor Commented:
I tried to write a small app yesterday. Here is what I wrote and it worked. But, I had Office Communicator 2005 and a similar approach should work with MSN Messenger.

CommunicatorAPI.MessengerClass m = new CommunicatorAPI.MessengerClass();

CommunicatorAPI.IMessengerContactAdvanced contact = m.GetContact("", string.Empty) as CommunicatorAPI.IMessengerContactAdvanced;

this.Visible = false;
CommunicatorAPI.IMessengerConversationWndAdvanced imWindow = m.InstantMessage(contact) as CommunicatorAPI.IMessengerConversationWndAdvanced;            


SendKeys.Send("Hello, this is an autobot");

Open in new window

Below are the references I added.

 References Screenshot
Hope this helps.

There seems to be no straightforward way for doing it. I too tried with Office Communicator 2005 sometime back but in vain. The below links might help you in making a C# app independent of the Messenger -
fancyfantaAuthor Commented:
I researched all those links, whole google....
I think, I must use MSN Messenger DLL files.
But which?
fancyfantaAuthor Commented:
This is not true method but, I follow this method then it worked.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.