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


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: RE: Plugin Help Requested
quote:
Originally posted by Matty
'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




Thanks alot for all of that information, i esspecially appriciate all of those colors, wow. although i got a Compile Error, um it exspected an identifier on "Object"

Public WithEvents MessengerAPI As object

Object was highlighted as well.

This post was edited on 08-05-2005 at 01:28 PM by michael_m91.

[Image: Email.JPG]
08-05-2005 01:22 PM
Profile E-Mail PM Web 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