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

Toast Box Help
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Toast Box Help
Try this instead
code:
function OnEvent_ChatWndCreated(ChatWnd)
{
var ChatWndContacts = ChatWnd.Contacts;
  if(ChatWndContacts.Count == 1)
  {
    var e = new Enumerator(ChatWndContacts);
    var Contact = e.item();
{
MsgPlus.DisplayToastContact(Messenger.MyName ,"Opened a Chat Window With", Contact.Name ,"CHIMES.WAV");
}
}
}
Though it doesn't matter if it is you or your contact that creates the window it will always say it's you.  I really don't know how to change this so it only happens on you opening the chat window (like i think you want gthered by your code)

EDIT: Ddunk's post explains it better and so does his code, I just used the DisplayToastContact because I keep forgetting how to do the extra line stuff :P also I have it only come up if there is only one contact in the chat (this is done by the fourth line)

This post was edited on 07-20-2006 at 11:26 AM by markee.
[Image: markee.png]
07-20-2006 11:20 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Toast Box Help - by Vexor on 07-20-2006 at 11:03 AM
RE: Toast Box Help - by markee on 07-20-2006 at 11:20 AM
RE: Toast Box Help - by ddunk on 07-20-2006 at 11:21 AM
RE: Toast Box Help - by Vexor on 07-20-2006 at 11:29 AM
RE: Toast Box Help - by ddunk on 07-20-2006 at 11:32 AM
RE: Toast Box Help - by Vexor on 07-20-2006 at 11:33 AM
RE: Toast Box Help - by markee on 07-20-2006 at 11:39 AM
RE: Toast Box Help - by Vexor on 07-20-2006 at 11:53 AM
RE: Toast Box Help - by markee on 07-20-2006 at 01:02 PM
RE: Toast Box Help - by Vexor on 07-20-2006 at 01:24 PM
RE: Toast Box Help - by markee on 07-20-2006 at 01:38 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