:(
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.
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.
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
Got the solution
Many thanks
BTW, do you have any suggestion about send the Customer Emotion?
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.
:(
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.
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.
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
Got the solution
Many thanks
BTW, do you have any suggestion about send the Customer Emotion?
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?