Shoutbox

Search a words in personal 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: Search a words in personal message. (/showthread.php?tid=98395)

Search a words in personal message. by badesco2 on 10-01-2011 at 10:33 AM

Hi to all!


I want know if there a script or tips for seach a words in personal message of my contact list.


Thanks a lot to all.


RE: Search a words in personal message. by matty on 12-09-2011 at 07:48 PM

Sorry for the delayed reply.

js code:
/*
    Usage:
   
    var a = FindInPsm('test');
    for (var i in a)
        Debug.Trace(a[i].Email);
*/

function FindInPsm(sTextToFind) {
    var oContainer = [];
    for (var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext())
        if (oContact.item().PersonalMessage.indexOf(sTextToFind) !== -1)
            oContainer.push(oContact.item());
           
    return oContainer;
}