What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » How to start off a plugin and how to make it simply change your name

How to start off a plugin and how to make it simply change your name
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to start off a plugin and how to make it simply change your name
'This is just an example of using the Visual Basic Input Box on the Initialize Function to set the new name.

Public strNewUserName As String
Public blnNameChange As Boolean

Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
    Initialize = True
    strNewUserName = InputBox("Enter New Name","Enter New Name", "Enter New Name")

    If strNewUserName = "" Or strNewUserName = "Enter New Name" Then
        MsgBox "Please Select A Different Name"
    Else
        blnNameChange = SetNewName(strNewUserName)
    End If
End Function



'If you are confused abuot what each of the variables passed through initialize are then please read the following.

'//////////////////////////////////////////////////////////////////////
'//
'// Purpose: Initialization function
'//
'// Definition:
'//   This function is called when Messenger starts and each time a
'//   different user signs-in in Messenger.                         
'//                                                                 
'// Parameters:                                                     
'//   * nVersion: plugin support version. This will be used in the   
'//     future to identify different levels of support. Messenger   
'//     Plus! 3.20 sets this value to 5.                             
'//   * sUserEmail: email of the current user in Messenger. If       
'//     Messenger is not signed-in, this parameter is the email of   
'//     the last user who signed in. Messenger Plus! uses this value
'//     to load its own settings.                                   
'//   * oMessenger: Messenger COM interface. The type of this object
'//     is "Messenger". For more information, consult the public     
'//     Messenger API documentation on Microsoft's web site.         
'//   * return value: if your initialization is successfull, return 
'//     True to notify Messenger Plus! that the plugin is ready to   
'//     use.                                                         
'//                                                                 
'// Plugin Version Index:                                           
'//     Messenger Plus! 2.20: 1                                     
'//     Messenger Plus! 2.21: 2                                     
'//     Messenger Plus! 2.50: 3                                     
'//     Messenger Plus! 3.00: 4                                     
'//     Messenger Plus! 3.20: 5                                     
'//                                                                 
'//////////////////////////////////////////////////////////////////////




'The above documentation is located in MPPluginDef.cls

This post was edited on 04-15-2005 at 05:14 PM by matty.
04-15-2005 05:07 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How to start off a plugin and how to make it simply change your name - by jasonallen on 04-15-2005 at 04:36 PM
RE: How to start off a plugin and how to make it simply change your name - by TheGeek on 04-15-2005 at 04:39 PM
RE: How to start off a plugin and how to make it simply change your name - by jasonallen on 04-15-2005 at 04:40 PM
RE: How to start off a plugin and how to make it simply change your name - by TheGeek on 04-15-2005 at 04:42 PM
RE: How to start off a plugin and how to make it simply change your name - by Stigmata on 04-15-2005 at 04:42 PM
RE: How to start off a plugin and how to make it simply change your name - by matty on 04-15-2005 at 05:07 PM
RE: How to start off a plugin and how to make it simply change your name - by jasonallen on 04-15-2005 at 05:12 PM
RE: RE: How to start off a plugin and how to make it simply change your name - by matty on 04-15-2005 at 05:17 PM
RE: How to start off a plugin and how to make it simply change your name - by jasonallen on 04-15-2005 at 05:27 PM
RE: How to start off a plugin and how to make it simply change your name - by matty on 04-15-2005 at 05:29 PM
RE: How to start off a plugin and how to make it simply change your name - by jasonallen on 04-15-2005 at 05:46 PM
RE: How to start off a plugin and how to make it simply change your name - by matty on 04-15-2005 at 05:55 PM
RE: How to start off a plugin and how to make it simply change your name - by jasonallen on 04-15-2005 at 05:58 PM
RE: How to start off a plugin and how to make it simply change your name - by matty on 04-15-2005 at 06:04 PM
RE: How to start off a plugin and how to make it simply change your name - by jasonallen on 04-15-2005 at 06:21 PM
RE: How to start off a plugin and how to make it simply change your name - by matty on 04-15-2005 at 06:52 PM


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