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:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: About Detect User status
js code:
function OnEvent_ChatWndSendMessage ( oChatWnd , sMessage ) {
    if ( oChatWnd.Contacts.Count !== 1 ) return sMessage; // Don't bother doing anything if there is more than one contact in the conversation
   
    // Get the contact object
    var oContact = new Enumerator ( oChatWnd.Contacts ).item();
   
    // Check if the user is online, if they are send the message
    if ( oContact.Status === STATUS_ONLINE ) {
        return sMessage;
    }
    else {
        // If the contacts status isn't online then cancel the message.
        return '';
    }
}
10-19-2009 03:44 PM
Profile E-Mail 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