What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Nickname highlight

Nickname highlight
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Nickname highlight
code:
var keywords= new Array("Spunky","SLM","Shane");

function OnEvent_ChatWndReceiveMessage(ChatWnd, Message){
    if(Origin!==Messenger.MyName){
        for(var s in keywords){
            if(Message.search(keywords[s])!==-1){
                 MsgPlus.DisplayToastContact("Nick Highlighter", "[c=#3682B4]Highlight[/c]",keywords[s] + " has been mentioned by " + MsgPlus.RemoveFormatCodes(Origin);
            }
        }
    }
}


Should do the same thing, but more efficiently... Could probably be improved upon though. Also, you can add other words into the array apart from names such as words relating to certain topics :p
<Eljay> "Problems encountered: shit blew up" :zippy:
09-28-2008 05:53 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Nickname highlight - by Johnny09 on 09-28-2008 at 04:02 PM
RE: Nickname highlight - by Spunky on 09-28-2008 at 05:53 PM
RE: Nickname highlight - by markee on 09-29-2008 at 11:01 AM
RE: Nickname highlight - by Spunky on 09-29-2008 at 11:05 AM
RE: Nickname highlight - by markee on 09-29-2008 at 11:22 AM
RE: Nickname highlight - by Spunky on 09-29-2008 at 03:34 PM
RE: Nickname highlight - by Johnny09 on 10-03-2008 at 05:26 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