Shoutbox

Searching through the status message - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Searching through the status message (/showthread.php?tid=93216)

Searching through the status message by markiccc on 12-15-2009 at 04:35 PM

Hi all, i have an important question.

In the old MSN messenger it was possible to search in the status message through the contact list. that means the status messages of all the contacts has been searched for the key word entered in the search field.

I have around 1000 contacts in MSN, using the service to contact business clients. Their demands or offers are ofter written in the status message. Therefore it has been very very usefull to search as well in the status message through the contacts.

Since the WL messenger is introduced, the search engine is not searching through the status message any more for some reason. It is a pity, makes the messenger much less comfortable for me.

Is there any possibility to add this feauture to the WLM?

Please help

Regards

Markiccc


RE: Searching through the status message by matty on 12-15-2009 at 05:23 PM

This isn't the appropriate section nor the correct website to be requesting this. This forum is for Messenger Plus!. The feature you are using is an internal one to Windows Live Messenger. Messenger Plus! has no authority over this feature.


RE: Searching through the status message by markiccc on 12-15-2009 at 05:29 PM

ok, but maybe there is an addon or a feature in messenger plus which allows to search the status messages of the contacts? or maybe it can be written?


RE: Searching through the status message by matty on 12-15-2009 at 06:36 PM

I was considering doing something of the sort. Let me see what I can come up with.


RE: Searching through the status message by matty on 12-16-2009 at 03:51 PM

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
RE: Searching through the status message by Matti on 12-16-2009 at 09:44 PM

All right, matty asked me to build a script for this so here it is. Open the search window through the script menu or with the /contactsearch command. Type in the query to search for and hit Search! Double-click a contact in the list of results to open a conversation with him/her. Yes, it's as simple as that! ;)

Currently, the script is limited to searching name or personal message and the words in the query have to follow each other exactly in the matches. The search is case-insensitive, so ABC is equal to abc, aBc, AbC,... And last but not least, the results list is sortable! :D

Enjoy!


RE: Searching through the status message by SourSpud on 12-16-2009 at 11:15 PM

Thanks Matty and Matti thats an awesome script! I'm using it now :)