What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Search a words in personal message.

Search a words in personal message.
Author: Message:
badesco2
New Member
*


Posts: 1
Joined: Oct 2011
O.P. Search a words in personal message.
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.
10-01-2011 10:33 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Search a words in personal message.
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;
}
12-09-2011 07:48 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