quote:
Originally posted by erickjbc
Matty: sEmail is the person that conects right?
see the
Official Scripting Documentation, which is a
must-first-read for anyone who wants to write a script or anyone who wants to know something about scripting.
The documentation is also available from inside the Scripting Editor itself:
Thus:
quote:
Scripting Documentation > Events Reference > Messenger Events > OnEvent_ContactSignin
Syntax
OnEvent_ContactSignin(
[string] Email
);
Parameters
Email [string] Sign-in email of the contact.
so yes, the parameter
Email is the person that connected.
---------------------------------------------------------
quote:
Originally posted by erickjbc
And can you put that when the message is sent, closes the window? I dont want to come home and find like 200 opened convers
The script snipped from Matty already does that:
quote:
Originally posted by Matty
code:
function OnEvent_ContactSignin(sEmail){
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);
}
else{
ChatWnd_obj.Close(0);
}
}
But even if the closing wasn't done, there wont be 200 windows open anyways though... only 1: the chat window from your 'PC account' to your 'phone account'.