What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » whats wrong about this line ?

whats wrong about this line ?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: whats wrong about this line ?
quote:
Originally posted by x_master_r
code:
function OnEvent_Signin(Email)
{
    if(Email == "ralph__sterks@hotmail.com")
    {
        var Message = "Hello Meester " + "Ralph" + "!" ;
        Message = MsgPlus.RemoveFormatCodes(Message) ;
        MsgPlus.DisplayToast("", Message,["welkoms bericht"] Title,["\C:\mijn downlaod stuff\benerweer.mp3"] SoundFile) ;
    }
}



code:
MsgPlus.DisplayToast('', Message,'\C:\\mijn downlaod stuff\\benerweer.mp3');

[Image: attachment.php?pid=675395]

Take a look at the params from the scripting document.

Title
[string] Title displayed on top of the toast. If an empty string is sent in this parameter, "Messenger Plus! Live" is used.

Message
[string] Message displayed in the toast. Carriage returns can be used to force line breaks. A maximum of 4 lines can be displayed in the toast created by this function. Format codes are not parsed in this parameter and must be filtered out with RemoveFormatCodes.

SoundFile
[string,optional] Path to the sound file that will be played when the toast is shown on screen. The path is relative to the script's directory by default, to override this behavior, prefix the path with "\". Example: "\C:\directory\sound.mp3". If the parameter is missing or the string is empty, no sound is played.

Callback
[string,optional] Name of the function in your script that will be called if the toast is clicked by the user. If the parameter is missing or the string is empty, the toast won't be clickable. For more information, see ToastCallbackTemplate.

CallbackParam
[var,optional] Parameter of variable type (can be a number, a string, an object, ...). This value will be sent as parameter of the function specified in Callback when the toast is clicked. It can be omitted if not needed.

.png File Attachment: DisplayToast.png (2.22 KB)
This file has been downloaded 413 time(s).

This post was edited on 06-25-2006 at 03:49 PM by matty.
06-25-2006 03:45 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
whats wrong about this line ? - by x_master_r on 06-25-2006 at 03:38 PM
RE: whats wrong about this line ? - by Sepulcrum on 06-25-2006 at 03:40 PM
RE: whats wrong about this line ? - by Choli on 06-25-2006 at 03:44 PM
RE: whats wrong about this line ? - by matty on 06-25-2006 at 03:45 PM
RE: whats wrong about this line ? - by x_master_r on 06-25-2006 at 03:56 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