What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » new and need some help

new and need some help
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: new and need some help
You can't do that directly, as there is no "Email" parameter in OnEvent_ChatWndReceiveMessage(); This is where loops come in:

JScript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
    if(Origin !== Messenger.MyName) {
        for(var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()) {
            Debug.Trace(e.item().Email); // Displays the WlID of the current contact
        }
    }
}

This is a for loop. It works like this:
for(Initial variable(s); Testing condition; Increment) {
    Code
}

  • Initial variable(s): this is what you have at the beginning, so an enumerator, array or whatsoever
  • Testing condition: if, and only if the testing condition is true, the Code will be executed
  • Increment: after the code has been executed, the Increment part is executed. If the Testing condition is false, this will not e executed

This post was edited on 12-22-2009 at 09:52 AM by SmokingCookie.
12-22-2009 09:52 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
new and need some help - by debeste95 on 12-21-2009 at 01:02 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:15 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 01:20 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:25 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 01:31 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:33 PM
RE: new and need some help - by debeste95 on 12-21-2009 at 01:37 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:41 PM
RE: new and need some help - by debeste95 on 12-21-2009 at 01:47 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:50 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 01:55 PM
RE: new and need some help - by matty on 12-21-2009 at 01:53 PM
RE: new and need some help - by debeste95 on 12-21-2009 at 04:09 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 05:49 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 05:55 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 06:02 PM
RE: new and need some help - by debeste95 on 12-22-2009 at 09:40 AM
RE: new and need some help - by SmokingCookie on 12-22-2009 at 09:52 AM
RE: new and need some help - by debeste95 on 12-22-2009 at 09:55 AM
RE: new and need some help - by SmokingCookie on 12-22-2009 at 09:58 AM
RE: new and need some help - by debeste95 on 12-22-2009 at 12:46 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