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

VB Help With /Commands
Author: Message:
Jutx
Junior Member
**

Avatar
Shocking.......

Posts: 98
– / Male / –
Joined: May 2003
RE: VB Help With /Commands
I think i get what you mean you want sResult to display what the command argument said but with text added to it. Correct me if i am wrong.

code:
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), "/xtest", vbTextCompare) = 0) Then

If sCommandArg = "%hello" then
       
        sResult = "You just said to this plug-in: " & Replace(sCommandArg,"%","")

       
End if
End if

        ParseCommand = True
        Exit Function
End Function

The Replace bit just gets rid of the percent. If you want it there you could just say:

sResult = "You just said to this plug-in: " & sCommandArg
Hard work pays off in the long run but laziness pays off NOW (H) :banana:
11-05-2003 11:21 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
VB Help With /Commands - by f3nd3r on 11-05-2003 at 06:22 PM
RE: VB Help With /Commands - by Jutx on 11-05-2003 at 06:33 PM
RE: VB Help With /Commands - by f3nd3r on 11-05-2003 at 07:31 PM
RE: VB Help With /Commands - by Jutx on 11-05-2003 at 11:21 PM
RE: VB Help With /Commands - by f3nd3r on 11-05-2003 at 11:40 PM
RE: VB Help With /Commands - by Jutx on 11-06-2003 at 12:07 AM
RE: VB Help With /Commands - by f3nd3r on 11-06-2003 at 12:44 PM
RE: VB Help With /Commands - by Jutx on 11-06-2003 at 04:19 PM
RE: VB Help With /Commands - by f3nd3r on 11-06-2003 at 05:11 PM
RE: VB Help With /Commands - by Jutx on 11-06-2003 at 05:20 PM
RE: VB Help With /Commands - by f3nd3r on 11-06-2003 at 05:38 PM
RE: VB Help With /Commands - by Hah on 11-06-2003 at 06:47 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