matty
Scripting Guru
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
Posts: 8328 Reputation: 109
39 / / ![Canada Flag](images/flags/ca.png)
Joined: Dec 2002
Status: Away
|
RE: RE: How to start off a plugin and how to make it simply change your name
quote: Originally posted by j.g.allen
What wd be an example to put in for version and omessenger?
'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 MessengerAPI.Messenger
Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
Initialize = True
Set MessengerAPI = oMessenger
End Function
'Setting a new nickname through the oMessenger Object passed through the Initalize Function is impossible as the MyFriendlyName Property is Read-Only (Cannot be changed). This is why I had Patchou add the SetNewName function into the API.
'The code that Stigmata posted is using Windows API calls but the Contact List Window has to be opened for it to work.
This post was edited on 04-15-2005 at 05:18 PM by matty.
|
|