What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Away Message - Help or Suggestions Please

Away Message - Help or Suggestions Please
Author: Message:
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Away Message - Help or Suggestions Please
(Please be sure you have MessengerAPI help or you may not be going to understand what I'm talking about :P)

Well, since you've got the Messenger object, you can use its MyContacts property, which is a MessengerContacts object and is a collection of contacts in the user's contact list. It has a method called Item(Index) which returns a MessengerContact. This object can be used in Messenger object's InstantMessage method.

So it may go like...

code:
Dim Counter As Long
Dim Contacts As MessengerAPI.IMessengerContacts
Dim Contact As MessengerAPI.IMessengerContact

Set Contacts = MessengerInstance.MyContacts

For Counter = 1 To Contacts.Count '(*)

   Set Contact = Contacts.Item(Counter)

   If Contact.Blocked = False Then

      'From here use MessengerInstance's InstantMessage method in step 2, and go on

      Exit For 'We can exit the loop because a "valid" contact has been found

   End If

Next 'It's up to you if you prefer "Next Counter" :p

(*)Note I forgot Item method's "Index" is 0-based or 1-based...Please try on your own. If it's 0-based, the For statmenet should change to For Counter = 0 To Contacts.Count - 1

You may want to do some check (to see if any window has been created in the loop) after the For loop. :)

This post was edited on 06-09-2005 at 04:45 PM by Mnjul.
06-09-2005 12:13 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:05 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 11:20 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:21 AM
RE: Away Message - Help or Suggestions Please - by Millenium_edition on 06-09-2005 at 11:22 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:25 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 11:33 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:35 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 11:48 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:56 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:13 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:17 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:23 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:32 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:39 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:43 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:48 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:54 PM
RE: Away Message - Help or Suggestions Please - by Yousef on 06-09-2005 at 02:34 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 02:38 PM
RE: RE: Away Message - Help or Suggestions Please - by Yousef on 06-09-2005 at 02:42 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