Menu

How to send message to other buddy?

Help
2006-04-17
2013-04-29
  • flyingforce

    flyingforce - 2006-04-17

    :(

    A very stupid problem, can you tell me how to send message to other buddy via the libarary?

    I had designed the code likes below:

    public void loginCompleted(MsnMessenger messenger) {
    log.info(messenger + " login complete ");                messenger.sendText(Email.parseStr("AAAA@msn.com"),"hi");
    System.out.println("Login complete");
    }

    I can get the two output "Login complete", but I cant get the message at AAAA@msn.com, can you tell me what to do?

    Many thanks for your help. And in fact, the library is very beautiful lib I met.

     
    • flyingforce

      flyingforce - 2006-04-17

      Not sure what's the problem, but when I changed my pc, use JDK1.5, the problem disappear.

      Tomorrow, I will check whats the problem w/ the original pc.

       
    • Roger Chen

      Roger Chen - 2006-04-17

      You should put your code in contactListInitCompleted event, like that:

      public void contactListInitCompleted(MsnMessenger messenger) {
      log.info(messenger + " login complete "); messenger.sendText(Email.parseStr("AAAA@msn.com"),"hi";);
      System.out.println("Login complete");
      }

      The sequence is :

      loginCompleted --> sync contact list --> contactListSyncCompleted --> get online contacts --> contactListInitCompleted

       
    • flyingforce

      flyingforce - 2006-04-17

      Got the solution

      Many thanks

      BTW, do you have any suggestion about send the Customer Emotion?

       
    • Daniel Henninger

      What's a customer emotion?  ;D  I can't see where I would set that in the 'real MSN client' I have installed.  Could you say a little more about them?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.