What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Help VB6 Plug-in (Basic Help)

Help VB6 Plug-in (Basic Help)
Author: Message:
brad31337
New Member
*


Posts: 1
Reputation: -7
Joined: Nov 2004
O.P. Help VB6 Plug-in (Basic Help)
Hi

im new to plug-ins but ive used VB6 before

Heres The code ive got going but im not sure how to get the /xsetaway thing working. Please HElp me. Thanks

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

Public Function Uninitialize()
End Function

Public Function Configure()
    MsgBox "A Plugin by Brad inc." + vbLf + "Author: Brad", vbOKOnly, "About Brad's Plugin..."
End Function

Public Function GetPublishInfo(ByRef sPluginName As String, ByRef nCommandCount As Long, ByRef nTagCount As Long) As Boolean
    sPluginName = "Brad inc." 'This name will be displayed in the Plus!\Plugins menu
    nCommandCount = 3
    nTagCount = 0
   
    GetPublishInfo = True

End Function

Public Function GetPublishCommandInfo(ByVal nCommandIdx As Long, ByRef sName As String, ByRef sValue As String, ByRef sHelp As String)
    If (nCommandIdx = 1) Then
        sName = "Displays the Parameter"
        sValue = "xsetaway"
        sHelp = "any text"
    ElseIf (nCommandIdx = 2) Then
        sName = "Ping"
        sValue = "xpingvb"
    ElseIf (nCommandIdx = 3) Then
        sName = "Bybye"
        sValue = "xbyevb"
    End If
End Function

Public Function GetPublishTagInfo(ByVal nTagIdx As Long, ByRef sName As String, ByRef sValue As String)
    If (nTagIdx = 1) Then
    End If
End Function

Public Function ParseCommand(ByVal sCommand As String, ByVal sCommandArg As String, ByVal oConversationWnd As Object, ByRef sResult As String) As Boolean
If (StrComp(LCase(sCommand), "/xsetaway", vbTextCompare) = 0) Then
sResult = "#/all" + " I'm going but ill be back in " + sCommandArg + " minutes" + vbLf + "#/away"
Exit Function

End If
ParseCommand = False
End Function


11-28-2004 11:05 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help VB6 Plug-in (Basic Help) - by brad31337 on 11-28-2004 at 11:05 PM
RE: Help VB6 Plug-in (Basic Help) - by Plik on 11-28-2004 at 11:18 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