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:
x_master_r
New Member
*


Posts: 11
Joined: Jun 2006
O.P. Huh?  whats wrong about this line ?
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
06-25-2006 03:38 PM
Profile E-Mail PM Find Quote Report
Sepulcrum
New Member
*


Posts: 8
Joined: Jun 2006
RE: whats wrong about this line ?
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...
06-25-2006 03:40 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: whats wrong about this line ?
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?
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
06-25-2006 03:44 PM
Profile PM Find Quote Report
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 414 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
x_master_r
New Member
*


Posts: 11
Joined: Jun 2006
O.P. RE: whats wrong about this line ?
ooo i think i get it thx
06-25-2006 03:56 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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