Hi I have made a script which uses the DisplayToastContact feature inside the ContactSignOut to tell you about a contact who has just signed out.
The script:
code:
function OnEvent_Initialize(MessengerStart)
{
Debug.Trace("Script Started")
}
// This is so I can get the Email of a contact who has just signed out
function OnEvent_ContactSignout(Email)
{
// This is to get all og the details I need
var details = Messenger.MyContacts.GetContact(Email)
// I want to use this to add the pic to the toast but I don't know how
var pic = details.DisplayPicture
// This is to get the name to use in DisplayToastContact
var name = details.Name
// This is to make the script neater
var message = " has signed out"
// This is the Toast
MsgPlus.DisplayToastContact("Contact SignOut",name,message,"online.mp3")
}
function OnEvent_Uninitialize(MessengerExit)
{
Debug.Trace("Script Ended")
}
I want to know if it is possible to have the display pic in the toast as well (like msn does when it tells you when a contact has signed in)
I would also like to know how I can crop names that are over a certain length and add the "..." so It doesn't just cut off the names which are too long (also like msn does for contact sign in)
Thanks for all of your help
~~Scutterman~~