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:
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: Block Command - Messenger API
quote:
Originally posted by Millenium_edition
quote:
Originally posted by raceprouk
Take a look at the attached file.

and if you can't look at the attached file we can't help you. we're not code bitches :)

Alright... I just am having troubles understanding this one btw

Edit by michael_m91:
code:
Public WithEvents MsgrUIA As MessengerAPI.Messenger
Public MsgrContact As MessengerAPI.IMessengerContact

Private Sub btnBlocked_Click()
    On Error Resume Next
    Dim strSigninName As String
    Dim strServiceID As String
    'Get selected contact
    strSigninName = ListContact.SelectedItem.SubItems(2)
    strServiceID = ListContact.SelectedItem.SubItems(5)
    Set MsgrContact = Nothing
    Set MsgrContact = MsgrUIA.GetContact(strSigninName, strServiceID)
    ErrorTrap ("GetContact")    'Error handling routine
    If MsgrContact.Blocked = True Then
        MsgrContact.Blocked = False
        MsgBox("Contact: " & CStr(MsgrContact.SigninName) & " is now Unblocked")
    Else
        MsgrContact.Blocked = True
        MsgBox("Contact: " & CStr(MsgrContact.SigninName) & " is now Blocked")
    End If
    ErrorTrap ("Contact.Blocked")    'Error handling routine
    populateListView    'Refresh contact list
End Sub

I don't understand how to name what contact I wan't to block.

This post was edited on 09-15-2004 at 01:06 PM by michael_m91.

[Image: Email.JPG]
09-15-2004 12:42 PM
Profile E-Mail PM Web 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