What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » welcome toast

welcome toast
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: welcome toast
quote:
Originally posted by plus
Yes but the  scripting docs are lost a can find them

I shall redownload :p

The scripting docs can never be lost though.

Simply select "Scripting Documentation" from the dropdown menu in the script editor. If the scripting documentation isn't available yet, Plus! will automatically redownload it again and will automatically open it. So, no reason to not read the documentation first...

[Image: attachment.php?pid=782596]

After the download, the file MPLScripting.chm (=the scripting documentation) will be located in your Plus! Live installation directory. I suggest also to make a shortcut for it.

;)

------------------------------------------------------------------------------------

quote:
Originally posted by cameron.stokes3
code:
function OnEvent_SigninReady(sEmail){
var contacts = Messenger.MyContacts;
var online = 0;
var offline = 0;
for(var e = new Enumerator(contacts); !e.atEnd(); e.moveNext()){
item = e.item();
if(item.Status != 1 && item.Status != 0){
online++;
} else {
offline++;
}
}

function OnEvent_SigninReady(_email) {
if (_email === 'blaa@blaa.com') {
MsgPlus.DisplayToast('Welcome', 'Hello and Welcome to Windows Live Messenger NAME.\n\r\n You have '+online+' contacts online.');
}
}

hi...  i am tryin to make the toast show how many contacts are online and this is what ive come up with... im not very good at this as it doesnt work :S do you know how to make it do what i want?

The reason that this doesn't work is because you have two of the same functions (OnEvent_SigninReady). You can only have 1 function like that. So add the second one into the first one...

Also note that toasts have a limited space. A full sentence like that will probably not be able to be shown on the small space you got in a toast.

quote:
Originally posted by cameron.stokes3
code:
function OnEvent_SigninReady(sEmail){
var contacts = Messenger.MyContacts;
var online = 0;
var offline = 0;
for(var e = new Enumerator(contacts); !e.atEnd(); e.moveNext()){
item = e.item();
if(item.Status != 1 && item.Status != 0){
online++;
} else {
offline++;
}
}
MsgPlus.DisplayToastContact('Welcome!', 'Hello '+sEmail+' You have '+online+' contacts online.', '' , '' ,'', '');
}

ok i have thqat and it all works but... all i see is hello and my email... the rest of it goes off the edge... how do i make it have like word wrapping so it makes it on a new line if it dont fit?

First of all, is there a reason why you use DisplayToastContact here instead of DisplayToast? Both functions are slightly different and if you want auto-wrapping you're best of using DisplayToast.

See scripting documentation for detailed info.

quote:
Originally posted by lrac522
How could this script be written to play a customized audio file instead of written text, is it possible? Hi all...(Y)

Please read the scripting documentation en browse the many available build-in functions (eg: PlaySound).



----------------------------------

I can't emphesize enough how important it is to first read the scripting documentation, and second to search forums.... before asking questions (or even giving advise).

A lot of stuff can be found in it and many questions are answered. Of course, you need to get used to reading the documentation and navigating thru it, the same for the forums. But once you are used to that, you will also have the means to search for answers yourself and in the long run you'll be learning a lot more things and will find solutions much quicker...

;)

.png File Attachment: plus!live_scriptdoc.png (24.72 KB)
This file has been downloaded 250 time(s).

This post was edited on 01-27-2007 at 03:39 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-26-2007 07:59 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
welcome toast - by cameron.stokes3 on 01-20-2007 at 03:30 PM
RE: welcome toast - by matty on 01-20-2007 at 04:06 PM
RE: welcome toast - by cameron.stokes3 on 01-25-2007 at 06:29 PM
RE: welcome toast - by plus on 01-25-2007 at 06:36 PM
RE: welcome toast - by Supersonicdarky on 01-25-2007 at 06:37 PM
RE: welcome toast - by Jimbo on 01-25-2007 at 06:43 PM
RE: welcome toast - by plus on 01-25-2007 at 06:47 PM
RE: welcome toast - by cameron.stokes3 on 01-25-2007 at 06:49 PM
RE: welcome toast - by Supersonicdarky on 01-25-2007 at 06:55 PM
RE: welcome toast - by cameron.stokes3 on 01-25-2007 at 07:24 PM
RE: welcome toast - by Jimbo on 01-25-2007 at 07:54 PM
RE: welcome toast - by cameron.stokes3 on 01-26-2007 at 04:41 PM
RE: welcome toast - by lrac522 on 01-26-2007 at 06:11 PM
RE: welcome toast - by Supersonicdarky on 01-26-2007 at 07:06 PM
RE: welcome toast - by lrac522 on 01-26-2007 at 07:10 PM
RE: RE: welcome toast - by CookieRevised on 01-26-2007 at 07:59 PM
RE: welcome toast - by plus on 01-26-2007 at 08:14 PM


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