What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Contacts - Using the wrong status

[?] Contacts - Using the wrong status
Author: Message:
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: [?] Contacts - Using the wrong status
code:
var StatusImg = new Array();
StatusImg[1] = "Offline";
StatusImg[2] = "AppearOffline";
StatusImg[3] = "Online";
StatusImg[4] = "Busy";
StatusImg[5] = "BeRightBack";
StatusImg[6] = "Idle";
StatusImg[7] = "Away";
StatusImg[8] = "InACall";
StatusImg[9] = "OutToLunch";
StatusImg[10] = "Blocked";
StatusImg[11] = "BlockedOffline";

function OnEvent_Initialize(MessengerStart)
{
  var Contacts = Messenger.MyContacts;
  var e = new Enumerator(Contacts);
  for(; !e.atEnd(); e.moveNext()) {
    var Contact = e.item();
    Wnd.LstView_AddItem('contacts', Contact.Email, 0);
    Wnd.LstView_SetItemIcon('contacts', Wnd.LstView_GetCount('contacts'), StatusImg[Contact.Status], true);
   
    if(Contact.Blocked==true&&Contact.Status!=1)Wnd.LstView_SetItemIcon('contacts', Wnd.LstView_GetCount('contacts'), StatusImg[10], true);
    else
    {
      Wnd.LstView_SetItemIcon('contacts', Wnd.LstView_GetCount('contacts'), StatusImg[11], true);
    }
   
    Debug.Trace("Contact Status: "+Contact.Status+" | StatusImg["+Contact.Status+"] = '"+StatusImg[Contact.Status]+"'");
  }
}

This should work. I havn't been able to try it though.
10-05-2007 08:48 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Contacts - Using the wrong status - by Spunky on 10-05-2007 at 08:35 PM
RE: [?] Contacts - Using the wrong status - by vikke on 10-05-2007 at 08:48 PM
RE: [?] Contacts - Using the wrong status - by Spunky on 10-05-2007 at 10:47 PM
RE: RE: [?] Contacts - Using the wrong status - by vikke on 10-05-2007 at 11:02 PM
RE: [?] Contacts - Using the wrong status - by Chris4 on 10-05-2007 at 10:59 PM
RE: [?] Contacts - Using the wrong status - by Spunky on 10-05-2007 at 11:08 PM
RE: [?] Contacts - Using the wrong status - by phalanxii on 10-06-2007 at 01:13 AM
RE: [?] Contacts - Using the wrong status - by markee on 10-06-2007 at 01:58 AM
RE: [?] Contacts - Using the wrong status - by Spunky on 10-06-2007 at 05:19 PM
RE: [?] Contacts - Using the wrong status - by Chris4 on 10-07-2007 at 02:08 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