Solved

Send Message via MSN Messenger

Posted on 2011-02-13
4
980 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
  • 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hey!! 5 37
"Emulate" TAB key when press Enter Key 3 49
How to read text with RegEx... 2 26
Name Space error VS2015 1 27
Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

820 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