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

Help with some code
Author: Message:
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: Help with some code
Firstly the function is OnEvent_Signin()

Secondly, ChatWnd.SendMessage only sends to the currently active window. I'm not going to write the code for you, but it'd be pretty simple to do.

code:
OnEvent_Signin(Email) {
//code
}

you would need to make the code iterate through every contact using Messenger.MyContacts

Actually, change of mind, i'll write it for you, but i wont test it or anything...

code:
OnEvent_Signin(Email) {
Debug.Trace("Contacts in the user's contact list:");
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
{
    var Contact = e.item();
    if (Contact.Status != 1) {
                    Messenger.OpenChat(Contact);
                    ChatWnd.SendMessage("MESSAGE");
         }
}
}

P.S. This is pretty basic stuff, most of the code was in the help files. I reccomend you a) look at the help files before asking for help and b) get a book teaching you javascript.

This post was edited on 10-02-2006 at 05:46 PM by saralk.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
10-02-2006 05:44 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with some code - by Jimbo on 10-02-2006 at 05:21 PM
RE: Help with some code - by saralk on 10-02-2006 at 05:44 PM
RE: RE: Help with some code - by Jimbo on 10-02-2006 at 05:46 PM
RE: Help with some code - by saralk on 10-02-2006 at 05:51 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 05:53 PM
RE: Help with some code - by deAd on 10-02-2006 at 06:09 PM
RE: Help with some code - by CookieRevised on 10-02-2006 at 06:11 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 06:13 PM
RE: Help with some code - by saralk on 10-02-2006 at 06:14 PM
RE: Help with some code - by deAd on 10-02-2006 at 06:15 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 06:17 PM
RE: Help with some code - by deAd on 10-02-2006 at 06:21 PM
RE: Help with some code - by CookieRevised on 10-02-2006 at 06:21 PM
RE: Help with some code - by deAd on 10-02-2006 at 06:23 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 06:24 PM
RE: Help with some code - by saralk on 10-02-2006 at 06:25 PM
RE: Help with some code - by CookieRevised on 10-02-2006 at 06:25 PM
RE: Help with some code - by deAd on 10-02-2006 at 06:27 PM
RE: RE: Help with some code - by CookieRevised on 10-02-2006 at 06:31 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 06:27 PM
RE: Help with some code - by saralk on 10-02-2006 at 06:28 PM
RE: Help with some code - by deAd on 10-02-2006 at 06:30 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 06:31 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 06:34 PM
RE: Help with some code - by deAd on 10-02-2006 at 06:36 PM
RE: Help with some code - by CookieRevised on 10-02-2006 at 06:38 PM
RE: Help with some code - by Jimbo on 10-02-2006 at 06:40 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