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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
??__??
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();
}
Remco youre right with inComingMessageChain you have the object MsnMessage its diffrent from the MsnInstantMessage that whas te problem thank you.