What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script Snippit Examples?

Script Snippit Examples?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Script Snippit Examples?
Well first things first take a look at the documentation.

code:
OnEvent_ContactSignin(
        [string] Email
    );

Notice the function passes the email address as a parameter. Therefore the code you use is

code:
function OnEvent_ContactSignin(sEmail){
    Debug.Trace(sEmail);
}

Also to note that the Contact and Contacts objects are only available when you enumerate or use the Messenger.MyContacts.GetContact function.

To enumerate the object you need to do the following:

code:
for ( var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext() );
    Debug.Trace( oContact.item().Email );
}

And to use the GetContact function it looks like this
code:
Debug.Trace( Messenger.MyContacts.GetContact( 'johndoe@hotmail.com' ).Email );

This post was edited on 09-02-2008 at 11:57 PM by matty.
09-02-2008 11:56 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Snippit Examples? - by Keikonium on 09-02-2008 at 11:22 PM
RE: Script Snippit Examples? - by Spunky on 09-02-2008 at 11:32 PM
RE: Script Snippit Examples? - by Keikonium on 09-02-2008 at 11:42 PM
RE: Script Snippit Examples? - by matty on 09-02-2008 at 11:56 PM
RE: Script Snippit Examples? - by Matti on 09-03-2008 at 11:09 AM
RE: Script Snippit Examples? - by Keikonium on 09-03-2008 at 11:19 AM
RE: Script Snippit Examples? - by Ezra on 09-03-2008 at 02:05 PM
RE: Script Snippit Examples? - by Keikonium on 09-03-2008 at 06:07 PM
RE: Script Snippit Examples? - by matty on 09-03-2008 at 06:21 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