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


Posts: 13
Joined: Sep 2008
O.P. Nickname highlight
Hello community,

those users who use irc may already know it. once your nickname is mentioned in a channel a small box appears in the lower right corner of your desktop and you get informed about this (e.g. Nickname 'Johnny' was mentioned in #irc).

is there a similar function to this for msgplus?

it would be useful e.g. in a mass conversation.

a normal msgplus message (MsgPlus.DisplayToastContact("Information","Your nickname has been mentioned by User")) should appear.

im also a scripter, but not experienced in msgplus scripting.
so it would be nice if you could help me.
its okay.. i figured it out myself:

--
var highwords = new Array ("johnny", "jay");

function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind)
{
     var e = new Enumerator(ChatWnd.Contacts);
     var contact = e.item();

    checkAndDisplay (Message, contact.Name);
}

function checkAndDisplay (Message, my)
{
    for (i in highwords) {
        if (Message.toLowerCase().search(highwords[i]) != -1) {
            MsgPlus.DisplayToastContact("Nick Highlighter", "[c=#3682B4]Highlight[/c]", "'"+ucfirst(highwords[i])+"' has been mentioned by: " + my, null, "locateDetectedAddress");
        }
    }
}

function ucfirst(str) {
    return str.substr(0,1).toUpperCase() + str.substr(1,str.length);
}
09-28-2008 04:02 PM
Profile E-Mail 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