What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] MsgPlus.DisplayToast

Pages: (2): « First [ 1 ] 2 » Last »
[help] MsgPlus.DisplayToast
Author: Message:
ninja0n3
New Member
*


Posts: 6
Joined: Jun 2006
O.P. [help] MsgPlus.DisplayToast
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?

This post was edited on 06-25-2006 at 02:15 PM by ninja0n3.
06-25-2006 02:15 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [help] MsgPlus.DisplayToast
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.
06-25-2006 02:19 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [help] MsgPlus.DisplayToast
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?
06-25-2006 02:20 PM
Profile E-Mail PM Find Quote Report
ninja0n3
New Member
*


Posts: 6
Joined: Jun 2006
O.P. RE: [help] MsgPlus.DisplayToast
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);
    }
}


This post was edited on 06-25-2006 at 02:30 PM by ninja0n3.
06-25-2006 02:23 PM
Profile E-Mail PM Find Quote Report
ninja0n3
New Member
*


Posts: 6
Joined: Jun 2006
O.P. RE: [help] MsgPlus.DisplayToast
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?
06-25-2006 02:49 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [help] MsgPlus.DisplayToast
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 [Image: email.gif] 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.
06-25-2006 02:54 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [help] MsgPlus.DisplayToast
quote:
Originally posted by Matty
As well please don't double post use the [Image: email.gif] button instead.
[Image: edit.gif] button. [Image: edit.gif] it :P

This post was edited on 06-25-2006 at 02:58 PM by Felu.
06-25-2006 02:56 PM
Profile E-Mail PM Web Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
35 / Male / Flag
Joined: May 2004
RE: [help] MsgPlus.DisplayToast
I think Matty meant the [Image: edit.gif] button, not the [Image: email.gif] one ;)

This post was edited on 06-25-2006 at 02:58 PM by mathieumg.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
06-25-2006 02:57 PM
Profile E-Mail PM Web Find Quote Report
ninja0n3
New Member
*


Posts: 6
Joined: Jun 2006
O.P. RE: [help] MsgPlus.DisplayToast
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 :D

This post was edited on 06-25-2006 at 03:05 PM by ninja0n3.
06-25-2006 03:00 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [help] MsgPlus.DisplayToast
There is no reason why this shouldn't work.

function OnEvent_Initialize(MessengerStart){
     Debug.Trace(MsgPlus.DisplayToast("test", "test"));
}
06-25-2006 03:21 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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