What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » "Variable" in toast

"Variable" in toast
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: "Variable" in toast
code:
var Words = new Array("Car","something", "etc");

function OnEvent_ContactSignin(contactemail){
    signedincontact = Messenger.MyContacts.getContact(contactemail)
    if(signedincontact.Blocked===false){
        var Message = MsgPlus.RevoveFormatCodes(signedincontact.Name+" has just arrived in his/her "+RandomWord())
        MsgPlus.DisplayToast("",Message);
    }
}

function RandomWord(){
    var x = Math.floor(Math.random()*Words.length)
    return Words[x];
}

<Eljay> "Problems encountered: shit blew up" :zippy:
11-04-2007 12:21 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
"Variable" in toast - by Addenorw on 11-04-2007 at 11:41 AM
RE: "Variable" in toast - by Spunky on 11-04-2007 at 12:21 PM
RE: "Variable" in toast - by Matti on 11-04-2007 at 03:53 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