What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Check Contact Status

[Request] Check Contact Status
Author: Message:
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [Request] Check Contact Status
Toasts you saying if they're online, offline, or unknown status.
code:
function OnEvent_ChatWndSendMessage(Wnd, Message) {
    if(Message.match(/\/check .+@.+/i) != null) {
        var Contact = Messenger.MyContacts.GetContact(Message.substr(7));
        if(Contact != null) {
            var Status = Contact.Status;
            if(Status > 2)
                MsgPlus.DisplayToastContact('Status',Contact.Name,'Is Online');
            else if(Status == 1)
                MsgPlus.DisplayToastcontact('Status',Contact.Name,'Is Offline');
            else
                MsgPlus.DisplayToastContact('Error',Contact.Name,'Has unknown status');
        } else {
            MsgPlus.DisplayToast('Contact','Not found.');
        }
        return '';
    }
}

function OnGetScriptCommands()
{
    var ScriptCommands = "<ScriptCommands>";
    ScriptCommands    +=     "<Command>";
    ScriptCommands    +=         "<Name>check</Name>";
    ScriptCommands    +=         "<Description>Checks status of email</Description>";
    ScriptCommands    +=          "<Parameters>&lt;email address&gt;</Parameters>";
    ScriptCommands    +=     "</Command>";
    ScriptCommands    += "</ScriptCommands>";

    return ScriptCommands;
}
09-24-2006 09:23 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Check Contact Status - by Chris4 on 09-24-2006 at 08:53 PM
RE: [Request] Check Contact Status - by Panachiba on 09-24-2006 at 09:19 PM
RE: [Request] Check Contact Status - by Silentdragon on 09-24-2006 at 09:23 PM
RE: [Request] Check Contact Status - by Chris4 on 09-24-2006 at 10:06 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