What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help - I'm new to scripting!

Help - I'm new to scripting!
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Help - I'm new to scripting!
Sorry - another question!

I'm trying this code on a simpler script, that displays toasts to the user regarding certain information, like sign-ins, name changes and so on.

Am I right in thinking that the menu items should be set like this:
JScript code:
function OnEvent_MenuClicked(sMenuId)
{
    if(sMenuId=="Enable")
    {
        var bEnabled = true;
        var Message = "Toaster has just been enabled!";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToast("Toaster", Message);
        Debug.Trace("Toaster | Enable");
    }
    if(sMenuId=="Disable")
    {
        var bEnabled = false;
        var Message = "Toaster has just been disabled!";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToast("Toaster", Message);
        Debug.Trace("Toaster | Disable");
    }
}


And then each toast should be like this:
JScript code:
function OnEvent_Signin(Email)
{
    if(bEnabled=="true")
    {
        var Message = "You have been signed in.";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToast("Toaster", Message);
        Debug.Trace("Toaster | UserSign-in");
    }
}

12-07-2008 11:25 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help - I'm new to scripting! - by whiz on 11-15-2008 at 03:12 PM
RE: Help - I'm new to scripting! - by matty on 11-25-2008 at 04:31 PM
RE: Help - I'm new to scripting! - by whiz on 11-26-2008 at 08:16 PM
RE: Help - I'm new to scripting! - by matty on 11-26-2008 at 08:23 PM
RE: Help - I'm new to scripting! - by whiz on 11-26-2008 at 09:01 PM
RE: Help - I'm new to scripting! - by matty on 11-27-2008 at 02:29 PM
RE: Help - I'm new to scripting! - by whiz on 11-27-2008 at 07:37 PM
RE: Help - I'm new to scripting! - by matty on 11-27-2008 at 07:38 PM
RE: Help - I'm new to scripting! - by whiz on 12-07-2008 at 11:25 AM
RE: Help - I'm new to scripting! - by Matti on 12-07-2008 at 11:29 AM
RE: RE: Help - I'm new to scripting! - by NanoChromatic on 12-07-2008 at 11:36 AM
RE: Help - I'm new to scripting! - by Matti on 12-07-2008 at 12:26 PM
RE: RE: Help - I'm new to scripting! - by NanoChromatic on 12-07-2008 at 02:08 PM
RE: Help - I'm new to scripting! - by whiz on 12-07-2008 at 04:06 PM
RE: RE: Help - I'm new to scripting! - by Jesus on 12-08-2008 at 12:39 AM
RE: Help - I'm new to scripting! - by whiz on 12-08-2008 at 07:49 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