quote:
Originally posted by erickjbc
and just a question how can i dao it with an especific person, like only when that person connects sends the message and not with everybody? is that possible?
Yes that's possible.
Just compared the parameter
Email from the event function (thus
sEmail in Matty's script snippet) with the email address of the contact you (don't) want. If it matches, (don't) perform the rest...
code:
function OnEvent_ContactSignin(sEmail) {
if (sEmail === "email of contact you want to be notified for") {
var ChatWnd_obj = Messenger.OpenChat('your phone account email here');
if (ChatWnd_obj.EditChangeAllowed == true) {
ChatWnd_obj.SendMessage(sEmail+' is online');
}
ChatWnd_obj.Close(0);
}
}
---
PS: don't try to double post. Edit your previous post by using the button underneath the post if you want to add something before anyone has replied.