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:
markiccc
New Member
*


Posts: 2
Joined: Dec 2009
O.P. Searching through the status message
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
12-15-2009 04:35 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Searching through the status message
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.
12-15-2009 05:23 PM
Profile E-Mail PM Find Quote Report
markiccc
New Member
*


Posts: 2
Joined: Dec 2009
O.P. RE: Searching through the status message
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?
12-15-2009 05:29 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Searching through the status message
I was considering doing something of the sort. Let me see what I can come up with.
12-15-2009 06:36 PM
Profile E-Mail PM Find Quote Report
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.

js 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
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Searching through the status message
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!

.plsc File Attachment: Contact List Search 1.0.001.plsc (13.86 KB)
This file has been downloaded 135 time(s).

This post was edited on 12-16-2009 at 09:45 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-16-2009 09:44 PM
Profile E-Mail PM Web Find Quote Report
SourSpud
Junior Member
**

Avatar
spud, spud, spud, spoon.

Posts: 58
35 / Male / Flag
Joined: Nov 2009
RE: Searching through the status message
Thanks Matty and Matti thats an awesome script! I'm using it now :)
12-16-2009 11:15 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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