Solved

Send Message via MSN Messenger

Posted on 2011-02-13
4
978 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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.

809 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