Messenger Plug Inn Question

Hi

I wrote a plug in for messenger, it is very simple. It is compile ok, and i install in Messenger. All seems to be ok but it doesn't work.

What's wrong?

I use strong name assemblie

Thanks

Here is the code:

using System;

using System.Collections.Generic;

using System.Text;

using Microsoft.Messenger;

namespace AnswerMachine

{

publicclassAnswerMachineAddIn :IMessengerAddIn

{

publicMessengerClient m_client;

publicvoid Initialize(MessengerClient client)

{

m_client = client;

m_client.AddInProperties.FriendlyName ="Answer Machine";

m_client.AddInProperties.PersonalStatusMessage ="Envia un mensaje";

m_client.AddInProperties.Description ="Una contestadora para cuando no te encuentres en tu lugar";

m_client.AddInProperties.Creator ="Juan";

m_client.IncomingTextMessage +=newEventHandler<IncomingTextMessageEventArgs>(m_client_IncomingTextMessage);

}

void m_client_IncomingTextMessage(object sender,IncomingTextMessageEventArgs e)

{

if (m_client.LocalUser.Status !=UserStatus.Online)

{

string texto = e.UserFrom.FriendlyName +" ahorita no me encuentro en mi lugar. Disculpa las molestias que esto te ocasiona";

m_client.SendTextMessage(texto, e.UserFrom);

}

}

}

}

[3147 byte] By [jmolg] at [2007-12-21]
# 1
Hola,
I found that you need to change your status to "Offline" or similar before it will work. You also need to have "Automatically turn on this addin when my status is anything other than Online or Appear Offline".

As far as I know there is no way for the Addins to work when you are Online. If anyone know differently, please advise.

savage1965 at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Messenger: Development...
# 2

Thank you! It is work!!!

jmolg at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Messenger: Development...
# 3
"As far as I know there is no way for the Addins to work when you are Online. If anyone know differently, please advise."

Sure you can, just click the drop-down list where you set your status and click "Turn on 'my plugin'. Unless I'm missunderstanding the question.

Strandberg at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Messenger: Development...
# 4
Thanks for that, totally missed it. That does work as well.
savage1965 at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Messenger: Development...

Windows Live Developer Forums

Site Classified