What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Searching through the status message

Searching through the status message
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Searching through the status message
This is a temporary solution until I can put an interface around it.

Javascript code:
var oContacts = {};
 
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage)
{
    var m = /^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage);
    if (m)
    {
        var Command = m[1].toLowerCase();
        var Param1 = m[2];
       
        if (Command === 'sname' || Command === 'spsm')
        {
            for (var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext()
            {
                oContacts[oContact.item().Email] = (Command === 'sname' ? oContact.item().Name : oContact.item().PersonalMessage);
            }
            Debug.DebuggingWindowVisible = true;
            Debug.ClearDebuggingWindow)();
            WordWheelSearch(Param);
            return '';
        }
    }
}
 
function WordWheelSearch(sString)
{
    if (typeof sString === 'undefined') sString = '';
   
    for (var oContact in oContacts )
    {
        if (oContacts[oContact].indexOf(sString) !== -1 && sString !== '' )
        {
            Debug.Trace (oContact)
        }
    }
}


The way you would use it is by doing this

/sname this test or /spsm this project

This post was edited on 12-16-2009 at 03:55 PM by matty.
12-16-2009 03:51 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Searching through the status message - by markiccc on 12-15-2009 at 04:35 PM
RE: Searching through the status message - by matty on 12-15-2009 at 05:23 PM
RE: Searching through the status message - by markiccc on 12-15-2009 at 05:29 PM
RE: Searching through the status message - by matty on 12-15-2009 at 06:36 PM
RE: Searching through the status message - by matty on 12-16-2009 at 03:51 PM
RE: Searching through the status message - by Matti on 12-16-2009 at 09:44 PM
RE: Searching through the status message - by SourSpud on 12-16-2009 at 11:15 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