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

Help with very small script
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help with very small script
OOPS!!!!!!!!!!!!!!!!!!

js code:
var oEmails = [
    'email1@hotmail.com',
    'email2@hotmail.com'
];

function OnEvent_ChatWndReceiveMessage (pChatWnd, sOrigin, sMessage, nMessageKind) {
    for (var oEmail in oEmails) {
>>>        if (pChatWnd.Contacts.GetContact(oEmails[oEmail]) && pChatWnd.Contacts.Count === 1) {<<<
            return '';
        }
    }
}

By using oEmail alone it is returning the position in the Array (in other words 0). Need to use oEmails[oEmail] to get the email address from the array.

This post was edited on 03-18-2010 at 08:28 PM by matty.
03-18-2010 08:27 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with very small script - by Barathrum on 03-17-2010 at 09:33 PM
RE: Help with very small script - by matty on 03-18-2010 at 12:29 AM
RE: Help with very small script - by Barathrum on 03-18-2010 at 05:16 PM
RE: Help with very small script - by Spunky on 03-18-2010 at 05:26 PM
RE: Help with very small script - by Barathrum on 03-18-2010 at 08:12 PM
RE: Help with very small script - by matty on 03-18-2010 at 08:27 PM
RE: Help with very small script - by Barathrum on 03-18-2010 at 09:06 PM
RE: Help with very small script - by Matti on 03-18-2010 at 09:16 PM
RE: Help with very small script - by CookieRevised on 03-19-2010 at 11:22 AM
RE: Help with very small script - by Barathrum on 03-19-2010 at 01:31 PM
RE: Help with very small script - by markee on 05-21-2010 at 01:59 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