VB and Messenger Live
Is it possible using VB6.0 to "connect" with Messenger Live to send out a message to either individual or a group of contacts? The reason for the questions is that I have an in house program that needs to delete a file and then recreate it but I keep running into an issue with access issue since other users have the file open. I want to be able to have my program broadcast a message out to the users to close the file.
Thanks in advance for the help.
Unfortunately you are looking for assistance for doing this in VB6, a language that Microsoft no longer supports and one that is not intended for help on this forum.
You may however want to look into VB.NET Express for such a project as it offers a great many tools and improvements over VB6 and best of all... it’s free.
When it comes to hitting Live Messenger from a VB.NET application... I’m afraid that I’m at a loss, at least with regards to sending a message.
Adding a reference to msnmsgr.exe is relatively easy as is the generation of the wrapper classes. Once added you can even create an instance of the MessengerClass object, query it for a Contact (GetContact) and open a message window to that contact (InstantMessage)... for the life of me I cannot see how one can actually send a message (short of using SendKeys to fire off text to the window).
An alternative might be to build your own custom app around something like DotMSN, an unsupported and unofficial .NET class that allows access (physically, not necessarily permitted by the MSN Messenger EULA) to the Messenger network and easily send and receive messages.