Message is defined, and the debug window open, I also made sure I added a debug.trace(Message) so I would see if the message was actually passing.
Debug.trace does show the message, but the toast is not displayed.
My status is set on away.
here is the debug exctract:
quote:
Script is now loaded and ready
Function called: OnEvent_Initialize
Hello World!
Function called: OnEvent_Uninitialize
Script has been stopped
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Hello World!
Function called: OnEvent_Signin
Hello Master 悪魔!
and here are the whole code:
code:
function OnEvent_Initialize(MessengerStart)
{
Debug.Trace("Hello World!");
MsgPlus.DisplayToast("test", "test"); //to see if it appeared with anything
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_Signin(Email)
{
if(Email == "my@email.com") //Change for your sign-in email
{
var Message = "Hello Master " + Messenger.MyName + "!";
Message = MsgPlus.RemoveFormatCodes(Message);
Debug.Trace(Message);
MsgPlus.DisplayToast("", Message);
}
}