Shoutbox

whats wrong about this line ? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: whats wrong about this line ? (/showthread.php?tid=61330)

whats wrong about this line ? by x_master_r on 06-25-2006 at 03:38 PM

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) ;
    }
}


i know its the first thing in the script doc and i wanna extent it

thy
RE: whats wrong about this line ? by Sepulcrum on 06-25-2006 at 03:40 PM

Put a Debug.Trace after the lines to see if it returns anything.
And BTW, what part of the script does not work? Maybe the sound needs to be .wav, i dunno...


RE: whats wrong about this line ? by Choli on 06-25-2006 at 03:44 PM

quote:
Originally posted by x_master_r
MsgPlus.DisplayToast("", Message,["welkoms bericht"] Title,["\C:\mijn downlaod stuff\benerweer.mp3"] SoundFile) ;
why do you use those brackets?
RE: whats wrong about this line ? by matty on 06-25-2006 at 03:45 PM

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.
RE: whats wrong about this line ? by x_master_r on 06-25-2006 at 03:56 PM

ooo i think i get it thx