Menu

Incoming message

Help
E Modena
2008-12-18
2013-04-29
  • E Modena

    E Modena - 2008-12-18

    I have build a little program that will login send messages and logout.

    I want a litlle more interaction my question is how can i get a incoming message and put it in a String.

    I know there is a incomingMessageChain where you can iterate through. Only i cant figured out where the message is placed in MsnMessage. In my consule i can see the incoming message so it has to be possible

     
    • Remco

      Remco - 2008-12-18

      ??__??
      String x = message.getContent();

      See the PrettyMsnListener example... I believe it's all in there.

      ____

              public void instantMessageReceived(MsnSwitchboard switchboard,
                                                 MsnInstantMessage message,
                                                 MsnContact friend) {

                      String x = message.getContent();
                     
              }

       
    • E Modena

      E Modena - 2008-12-18

      Remco youre right with inComingMessageChain you have the object MsnMessage its diffrent from the MsnInstantMessage that whas te problem thank you.

       

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.