What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » About Detect User status

About Detect User status
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: About Detect User status
matty's example showed how to get the status of a contact when you open the conversation window. But the status property belongs to the contact object. This object is always available. So you don't need to first open a conversation window, it can be checked before too. In matty's example you get that contact object from the contacts who are in the conversation window, but you can just as well get that object from your contact list.

So, all you need to do is get the contact object from the contact you which to check upon. This can be done by using the Messenger::MyContacts object, which will give you a contacts object, which will have a getcontact method.

Anyways, all this info can be found in the Scripting documentation.
Go to the index tab and there you have all the object, properties and methods you can use....

var oContacts = Messenger.MyContacts
var oContact = oContacts.GetContact("contact@mail.com")
var eStatus = oContact.Status

PS: also check out the ChatWnd::EditChangeAllowed property! This property indicates if you actually can send a message or not. It should always be used before ChatWnd::SendMessage.

This post was edited on 03-24-2010 at 12:27 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-24-2010 12:23 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
About Detect User status - by xljeff on 10-18-2009 at 06:16 PM
RE: About Detect User status - by matty on 10-19-2009 at 03:44 PM
RE: About Detect User status - by xljeff on 10-19-2009 at 04:13 PM
RE: About Detect User status - by xljeff on 03-24-2010 at 03:19 AM
RE: About Detect User status - by CookieRevised on 03-24-2010 at 12:23 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