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');
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.