Thats sweet dude. Thanks very much. That method didnt occur to me, yet its so obvious now I think about it.
Ok now my next problem is how do i get the sResult to display written text aswell as something a command has triggered...Look at the source below.
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 = "Hello"
End if
End if
ParseCommand = True
Exit Function
End Function
if someone types /xtest this is me saying %hello
How do i get sResult to display "this is me saying hello" ?