Shoutbox

[Help] Alerts - 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] Alerts (/showthread.php?tid=62662)

[Help] Alerts by go2hell on 07-06-2006 at 09:04 AM

Hi there, need a little help here.

Is possiible to add an alert to WLM alerts?

Or is there an alternative to keep track of non clicked toast?

I wanted to keep track of all of the toats i didn't read.

Thanks in advance.


RE: Alerts by rob_botch on 07-06-2006 at 09:23 AM

You could keep a record of all of the toasts that you receive, and then remove the record for any toast that you do click.

Hope this helps


RE: Alerts by go2hell on 07-06-2006 at 09:27 AM

Yes, but is there a way to keep that track visible within the contact window (and not in the psm) like Windows Live messager Alerts do?

Also, I was just wondering, is there something wrong with:

code:
MsgPlus.DisplayToast(Title, Message, "ringin.wav", "OnToastClick", 1);
as it is not playing the sound, but is showing the toast, whereas
code:
MsgPlus.PlaySound("ringin.wav");
works fine.

Sure i could just use:
code:
MsgPlus.DisplayToast(Title, Message, "", "OnToastClick", 1);
MsgPlus.PlaySound("ringin.wav");


RE: [Help] Alerts by Joereynolds89 on 07-06-2006 at 11:47 AM

MsgPlus.DisplayToast("Title",Message,'ringin.wav');

Im a shit coder, but i dont understand your need for the 1??

Display toast only has the 3 lines? im not sure, try it :D


RE: [Help] Alerts by go2hell on 07-06-2006 at 11:51 AM

According to the docs:

code:
[boolean] DisplayToast(
    [string] Title,
    [string] Message,
    [string,optional] SoundFile,
    [string,optional] Callback,
    [var,optional] CallbackParam
);


so the 1 value is  the parameter i'm passing to the Callback function.
RE: [Help] Alerts by RaceProUK on 07-06-2006 at 12:08 PM

quote:
Originally posted by go2hell
so the 1 value is  the parameter i'm passing to the Callback function
Remove it if you don't want a potential crash.
Sorry, I misread the parameter list.
RE: [Help] Alerts by go2hell on 07-06-2006 at 12:14 PM

No problem :P

Btw, any sugestions regarding the main topic of this thread?

Thanks.


RE: [Help] Alerts by go2hell on 07-10-2006 at 06:38 PM

Bump....

I'll repeat the question:

Is there any way to keep something visible in the contacts window, to keep track of unclicked toasts (something like windows live messenger alerts) or do i have to open a new window if i wish to do this?

Thanks