What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Q] Clickable Toast

[Q] Clickable Toast
Author: Message:
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. [Q] Clickable Toast
Hi Guys, ;)

How can you make a Clickable Toast?
I got the command:

code:
function OnEvent_ContactSignin(email)
{
    if(email == 'foo@live.com') {
    }
}

I want that when foo@live.com is comming online, there comes a toast, and when i click on it, it starts a conversation..

I want this because when i'm gaming, my status is going be busy, and then i cant see who comes online (who i want to talk to).. :P

Thnx,
PaulE
12-12-2006 05:53 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [Q] Clickable Toast
No problem!
code:
function OnEvent_ContactSignin(email)
{
if(email == 'foo@live.com') {
MsgPlus.DisplayToastContact("Notification", email, "came online.", "", "ToastCallback");
}
}

function ToastCallback(){
Messenger.OpenChat("foo@live.com");
}
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-12-2006 05:57 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: [Q] Clickable Toast
code:
var Contact

function OnEvent_ContactSignin(email)
{
if(email == 'foo@live.com') {
Contact = email
MsgPlus.DisplayToast("Title","Message","soundfile","callback function");
}
}

function callback(){
Messenger.OpenChat(Contact);
}


That should do it. If not, you could always look stuff up in the Scripting Documentation

EDIT: Beaten

This post was edited on 12-12-2006 at 06:00 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
12-12-2006 06:00 PM
Profile PM Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: [Q] Clickable Toast
And what i have to do when i want more then 1 email? :P
12-12-2006 06:01 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: [Q] Clickable Toast
TIP: You could make an array of emails and use a loop to compare each one to the user that has just signed and if it finds a match, display the toast. That way you just add users to the array to add them to the list so to speak
<Eljay> "Problems encountered: shit blew up" :zippy:
12-12-2006 06:02 PM
Profile PM Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: [Q] Clickable Toast
Hehe, thnx, problem solved :D
12-12-2006 06:07 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [Q] Clickable Toast
quote:
Originally posted by PaulE
And what i have to do when i want more then 1 email? :P
code:
//Add as much contacts as you want here, but not too much since looping can slow down your Messenger
var checkFor = new Array("someone@live.com", "somebody@live.com");

function OnEvent_ContactSignin(email) {
   for(i in checkFor) {
      if(email == checkFor[i]) {
         //Now it even shows the name in the popup! :-D
         MsgPlus.DisplayToastContact("Notification", Messenger.MyContacts.GetContact(email).Name, "came online.", "", "ToastCallback", email);
         return;
   }
}

//Now accepts an email parameter to make things easier ;-)
function ToastCallback(email){
   Messenger.OpenChat(email);
}
Damn, you already got it. :P Ah well, maybe this could be interesting for someone. :)

This post was edited on 12-12-2006 at 06:12 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-12-2006 06:11 PM
Profile E-Mail PM Web Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: [Q] Clickable Toast
haha, thnx much more nicer! :D

--

haha, bedankt stukken mooier! :D

This post was edited on 12-12-2006 at 06:14 PM by PaulE.
12-12-2006 06:14 PM
Profile PM Find Quote Report
« 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