Has anyone been able to get the tags <YES></YES> and <NO></NO> to work in 6.1?
As with 6.0, I seem to be able to get <YES> to work, but <NO> gives a YES answer. Here's my code:
Rem Type=Plugin
Rem Name=Know More
Rem Author= Bill DeWitt
Rem Host=Assistant
'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------
Sub OptionsPanel()
lblPlugin(0).Caption = "Would you like to know more?"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
Rem PLUGIN: PLUGINAREA7
HalBrain.ReadOnlyMode = False
If InStr(1,OriginalSentence,"Hello Robot",1) Then
GetResponse = "Would you like to know more?<YES>"&SayYes()&"</YES><NO>"&SayNo()&"</NO>"
End If
HalBrain.ReadOnlyMode = True
Rem PLUGIN: FUNCTIONS
Function SayYes()
SayYes = "You made it!"
End Function
Function SayNo()
SayNo = "You munged it!"
End Function