What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Block Command - Messenger API

Block Command - Messenger API
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Block Command - Messenger API
quote:
Originally posted by michael_m91
I don't understand how to name what contact I wan't to block.
Even without understanding the exact meaning of things you can easly figure that out:

MsgBox("Contact: " & CStr(MsgrContact.SigninName) & " is now unblocked")

this shows something like: "Contact: contacts name is now unblocked"... this means that Contacts name = MsgrContact.SigninName

Now step back in the source. Where is MsgrContact.SigninName defined? here:

Set MsgrContact = MsgrUIA.GetContact(strSigninName, strServiceID)

So what is strSigninName? Just simple step back:

strSigninName = ListContact.SelectedItem.SubItems(2)

There you have it: ListContact.SelectedItem., a listcontrol and together with btnBlocked_Click() I see that this code is a sub for when you click on a button on a form with a listcontrol which contains the contactnames/mails.


All in all, this is basic programming stuff and actually very easy to understand if you can program a very small bit. If you can't (and you can't reconize what a variable, object and/or property is), then I suggest you to first learn easier and basic programming stuff, before attempting doing stuff with API's, objects, protocol-handling, etc...

This post was edited on 09-15-2004 at 01:24 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-15-2004 01:20 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Block Command - Messenger API - by michael_m91 on 09-15-2004 at 04:58 AM
RE: Block Command - Messenger API - by RaceProUK on 09-15-2004 at 11:26 AM
RE: Block Command - Messenger API - by michael_m91 on 09-15-2004 at 12:30 PM
RE: Block Command - Messenger API - by Millenium_edition on 09-15-2004 at 12:33 PM
RE: Block Command - Messenger API - by michael_m91 on 09-15-2004 at 12:42 PM
RE: Block Command - Messenger API - by Millenium_edition on 09-15-2004 at 12:53 PM
RE: RE: Block Command - Messenger API - by michael_m91 on 09-15-2004 at 01:10 PM
RE: Block Command - Messenger API - by CookieRevised on 09-15-2004 at 01:20 PM
RE: Block Command - Messenger API - by Millenium_edition on 09-15-2004 at 01:21 PM
RE: Block Command - Messenger API - by michael_m91 on 09-16-2004 at 12:35 AM


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