[help] MsgPlus.DisplayToast - 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: [help] MsgPlus.DisplayToast (/showthread.php?tid=61305)
[help] MsgPlus.DisplayToast by ninja0n3 on 06-25-2006 at 02:15 PM
I've been trying the tutorial script in getting started, however, when I call the function code: MsgPlus.DisplayToast("", Message);
nothing happens, any ideas why?
RE: [help] MsgPlus.DisplayToast by Felu on 06-25-2006 at 02:19 PM
Have you defined the message to appear? Also is your script running? If its stopped then there are problems with your script try and solve them.
RE: [help] MsgPlus.DisplayToast by matty on 06-25-2006 at 02:20 PM
code: function OnEvent_Initialize(MessengerStart)
{
MsgPlus.DisplayToast('','test');
}
Make sure your status is not set to busy. Try enabling the Debug Window.
code: Debug.DebuggingWindowVisible = true;
See if there are any errors with the code.
Is Message defined and contain a value?
RE: [help] MsgPlus.DisplayToast by ninja0n3 on 06-25-2006 at 02:23 PM
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);
}
}
RE: [help] MsgPlus.DisplayToast by ninja0n3 on 06-25-2006 at 02:49 PM
I added a function to see if DisplayToast was returning fasle and it is.
This said, none of the conditions stated in the doc are met...
quote: - The user's status is Busy and "Show Messenger Plus! popup notifications when Busy" is unchecked in the user's preferences.
- The user has locked out his Windows session.
- A screensaver is currently running.
- The user is playing to a full screen DirectX game.
is there any place where I could check the exhaustive list of why it would return false?
RE: [help] MsgPlus.DisplayToast by matty on 06-25-2006 at 02:54 PM
Restart Windows Live Messenger. (signing in as Online)
See if you get any toasts popping up.
As well please don't double post use the button instead. I have an RSS Feed for the site so I see when stuff is added and I will reply when I get a chance.
RE: [help] MsgPlus.DisplayToast by Felu on 06-25-2006 at 02:56 PM
quote: Originally posted by Matty
As well please don't double post use the button instead.
button. it
RE: [help] MsgPlus.DisplayToast by mathieumg on 06-25-2006 at 02:57 PM
I think Matty meant the button, not the one
RE: [help] MsgPlus.DisplayToast by ninja0n3 on 06-25-2006 at 03:00 PM
Apologies for the double post.
I restarted live with online status, it still returns false.
I have no idea why.
Everything seems to be in normal conditions.
I have also tried to test with the following code:
code: function OnEvent_Initialize(MessengerStart)
{
callToast();
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function callToast()
{
var tst = MsgPlus.DisplayToast("test", "test");
Debug.Trace("DisplatToast: "+tst);
}
I get this as a result:
quote: Script has been stopped
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
DisplatToast: false
PS: I gathered it was the edit butto lol
RE: [help] MsgPlus.DisplayToast by matty on 06-25-2006 at 03:21 PM
There is no reason why this shouldn't work.
function OnEvent_Initialize(MessengerStart){
Debug.Trace(MsgPlus.DisplayToast("test", "test"));
}
RE: [help] MsgPlus.DisplayToast by ninja0n3 on 06-25-2006 at 03:26 PM
Tell me about it...
it still returns false and I can't really figure out why it's doing that. makes no sense...
BTW, I have the A-patch installed
Is there compatibility issues with A-patch or something?
RE: [help] MsgPlus.DisplayToast by matty on 06-25-2006 at 03:27 PM
quote: Originally posted by ninja0n3
Tell me about it...
it still returns false and I can't really figure out why it's doing that. makes no sense...
BTW, I have the A-patch installed
Is there compatibility issues with A-patch or something?
Patchou has only added a compatibility fix for Mess Patch because APatch wasn't ready at the time when we realized there was an incompatibility. I suggest reinstalling Windows Live Messenger.
RE: [help] MsgPlus.DisplayToast by ninja0n3 on 06-25-2006 at 03:52 PM
As you suggested, I removed and reinstalled Live from scratch, then applied Live Plus right away to it with no A-Patch or Mess Patch.
I launched the program and in the debug section I still get false for
function OnEvent_Initialize(MessengerStart){
Debug.Trace(MsgPlus.DisplayToast("test", "test"));
}
Is there an exhaustive list available of the reasons why DisplayToast is returning false. It seems to me that the problem might be related to something else... I just don't know what.
|