What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Displaying my name in colour?

Displaying my name in colour?
Author: Message:
Ashylay
Junior Member
**

Intermediate Scripter

Posts: 70
Reputation: 1
– / Male / –
Joined: Mar 2007
O.P. Displaying my name in colour?
What I want to do is when I send a message (/myname) a toast appears with my name on it IN COLOUR.

Alls I can do is remove the format codes, which I dont want to do and display the format codes which I dont want to do. Any help?

code:
var myName = Messenger.MyName

function OnGetScriptCommands(){
    var commands = "<ScriptCommands>";
    commands += " <Command>"
    commands += " <Name>myname</Name>"
    commands += " <Description>Displays your msn name in a toast</Description>"
    commands += "</ScriptCommands>"
    return commands;
}


function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    if(Message=="/myname") {
        myName = MsgPlus.RemoveFormatCodes(myName);
        MsgPlus.DisplayToast("Boo", myName);
    }
}
04-01-2007 05:06 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Displaying my name in colour? - by Ashylay on 04-01-2007 at 05:06 PM
RE: Displaying my name in colour? - by markee on 04-02-2007 at 11:48 AM
RE: Displaying my name in colour? - by Ashylay on 04-02-2007 at 12:01 PM
RE: Displaying my name in colour? - by matty on 04-02-2007 at 12: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