code:
var Contact
function OnEvent_ContactSignin(email)
{
if(email == 'foo@live.com') {
Contact = email
MsgPlus.DisplayToast("Title","Message","soundfile","callback function");
}
}
function callback(){
Messenger.OpenChat(Contact);
}
That should do it. If not, you could always look stuff up in the Scripting Documentation
EDIT: Beaten