What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Plugin Help Requested

Plugin Help Requested
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Plugin Help Requested
'This is just an example for calling the oMessenger object passed through the Initialize Function into a Variable.
'Make sure to set a reference to the MessengerAPI Type Library


Public WithEvents MessengerAPI As Object 'You can use MessengerAPI.Messenger but you must set a reference to the MessengerAPI Type Library

Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
    Initialize = True
    Set MessengerAPI = oMessenger
End Function

Private Sub MessengerAPI_OnContactStatusChange(ByVal pMContact As Object, ByVal mStatus As MessengerAPI.MISTATUS)
   
    'Declare an Object variable to hold the IMContact
    Dim IMContact As Object
    'Set our variable to the the object passed through the function
    Set IMContact = New pMContact
    'Display a message box with the contact email and status (Note status is an integer not a string)
    MsgBox "Email: " & IMContact.SigninName & vbNewLine & "Status: " & mStatus

End Sub
08-05-2005 06:03 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Plugin Help Requested - by michael_m91 on 08-05-2005 at 05:45 AM
RE: Plugin Help Requested - by matty on 08-05-2005 at 06:03 AM
RE: Plugin Help Requested - by RaceProUK on 08-05-2005 at 11:11 AM
RE: RE: Plugin Help Requested - by michael_m91 on 08-05-2005 at 01:22 PM
RE: Plugin Help Requested - by RaceProUK on 08-05-2005 at 02:11 PM
RE: Plugin Help Requested - by matty on 08-05-2005 at 08:28 PM
RE: Plugin Help Requested - by RaceProUK on 08-05-2005 at 08:46 PM
RE: Plugin Help Requested - by michael_m91 on 08-05-2005 at 11:31 PM
RE: RE: Plugin Help Requested - by matty on 08-06-2005 at 04:32 AM
RE: Plugin Help Requested - by michael_m91 on 08-06-2005 at 04:58 AM
RE: Plugin Help Requested - by matty on 08-06-2005 at 05:07 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