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

Pages: (2): « First « 1 [ 2 ] Last »
welcome toast
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
RE: welcome 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?
Put \n when you want a new line
01-25-2007 07:54 PM
Profile E-Mail PM Find Quote Report
cameron.stokes3
New Member
*


Posts: 12
32 / Male / –
Joined: Jan 2007
O.P. RE: welcome toast
wen i put \n just before "You have..." it pushes it all of the toast completely so all i get is welcome and the email
01-26-2007 04:41 PM
Profile E-Mail PM Find Quote Report
lrac522
Full Member
***

Avatar

Posts: 317
Reputation: 9
– / Male / Flag
Joined: Jan 2006
RE: welcome toast
How could this script be written to play a customized audio file instead of written text, is it possible? Hi all...(Y)
[Image: signature3phpga4.png]
01-26-2007 06:11 PM
Profile E-Mail PM Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
RE: welcome toast
http://shoutbox.menthix.net/showthread.php?tid=70791&pid=779649
01-26-2007 07:06 PM
Profile E-Mail PM Find Quote Report
lrac522
Full Member
***

Avatar

Posts: 317
Reputation: 9
– / Male / Flag
Joined: Jan 2006
RE: welcome toast
cheers...(Y)
[Image: signature3phpga4.png]
01-26-2007 07:10 PM
Profile E-Mail PM Find Quote Report
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
plus
Banned


Posts: 127
Reputation: -10
Joined: Jan 2007
RE: welcome toast
I didnt know it was there i always thought you had to download it then open it... oh well

This post was edited on 01-26-2007 at 08:14 PM by plus.
01-26-2007 08:14 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