What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Contact singout script, need some advice

Contact singout script, need some advice
Author: Message:
scutterman
Junior Member
**

Avatar
-- Scutterman avatar from Runescape

Posts: 21
– / Male / Flag
Joined: Jul 2007
O.P. Contact singout script, need some advice
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~~

Of course the world doesn't make sense
Its only purpose is to be somewhere that
humans can stand around in complaining
that the world doesn't make sense


08-17-2007 12:19 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Contact singout script, need some advice - by scutterman on 08-17-2007 at 12:19 PM
RE: Contact singout script, need some advice - by matty on 08-17-2007 at 01:07 PM
RE: Contact singout script, need some advice - by scutterman on 08-17-2007 at 03:27 PM
RE: Contact singout script, need some advice - by scutterman on 08-20-2007 at 01:02 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On