Ah i think i understand what you mean so you would want to show CPU speed for example but in the format the user wants. Perhaps a tag is better than this instead of a command so instead of the user typing:
/xtest My Computer zooms at %cpu
The user would write:
My Computer Zooms at (!CPU)
(The code is pretty much the same except it is the ParseTag option that you want.) If you still would prefer it as a command then here is the code format you want.
EDIT: The code has been updated a bit
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 Instr(Lcase(sCommandArg), "%cpu") <> 0 then
Dim CPUSpeed As Long
' Type Code to get CPUSpeed
' then return the number of megahertz the CPU speed is (here the code will always say 1000 coz i don't know how to get CPU Speed)
CPUSpeed = 1000
sResult = Replace(sCommandArg,"%cpu", CPUSpeed)
End if
End if
ParseCommand = True
Exit Function
End Function