Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Send Message via MSN Messenger

Posted on 2011-02-13
4
Medium Priority
?
1,010 Views
Last Modified: 2013-12-14
Hi,
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.
Thanks.
0
Comment
Question by:fancyfanta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:chandra_darbha
ID: 34885791
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 -

http://www.codeproject.com/KB/cs/enhancedmessenger.aspx
http://www.codeproject.com/KB/cs/Connect_To_MSN_Messenger.aspx
http://msdn.microsoft.com/en-us/library/ms630960(VS.85).aspx
http://social.msdn.microsoft.com/Forums/en/wlmessengerdev/thread/ecea4566-2cfe-4285-b9be-27867f4d0fd4
0
 

Author Comment

by:fancyfanta
ID: 34890148
I researched all those links, whole google....
I think, I must use MSN Messenger DLL files.
But which?
0
 
LVL 3

Accepted Solution

by:
chandra_darbha earned 1000 total points
ID: 34894234
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("user@domain.com", string.Empty) as CommunicatorAPI.IMessengerContactAdvanced;

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

imWindow.Show();

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

Open in new window


Below are the references I added.

 References Screenshot
Hope this helps.

Thanks,
Chandra
0
 

Author Closing Comment

by:fancyfanta
ID: 34972547
This is not true method but, I follow this method then it worked.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Article by: Ahmedn1
Introduction Some developers today tend to use Skypekit in their applications to make it more interactive with the user. Skype API is very awesome indeed but the problem is it is only available in C++, Java and Python. I can't understand why Micr…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question