AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Program# some tags do not work
 
 

Hello everyone,
I am trying to create a simple standalone chatbot program, using PROGRAM#.
Everything seams to work ok except that some of the tags don’t work.
The srai,li,random,get tags all work.
I am having trouble the “that” and “topic” tags.
I don’t know wheather it’s in my app code or the interpeter.

I would appreicate any help.

This is my app code below.
I am using Visual Studio 2010 express with Windows XP Pro

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using AIMLBot;

namespace MyAimlBot1
{
Public partial class MyAimlBot1: System.Windows.Forms.Forms
{
Private cBot myBot;

Public MyAimlBot1()
{
InitializeComponent();

myBot=new cBot(false);
this.textBox1.keyPress += new KeyPressEventHandler(this.textBox1_KeyPress);
}
     
      Private void MyAimlBot1_Load(object sender, EventArgs e)
      {
}

      Private void textBox1_keyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
      {
if (e.KeyChar ==13)
{
this.richTextBox1.Text=this.richTextBox1.Text;
cResponse reply=myBot.chat(this.textBox1.Text, "user")
this.richTextBox1.Text=reply.getOutput();
this.textBox1.Text="";
}
  }

 

 
  [ # 1 ]

Hello, Starling, and welcome to chatbots.org.

Oddly enough, Program# is one of the few that I’ve spent any time checking out. I’ve downloaded the source code, and I’ll do some basic ‘poking around’, but it may take me a few days to find anything out, since I’m not all that familiar with C#. But I’ll give it my best shot. smile

 

 
  [ # 2 ]

Thanks Dave

 

 
  login or register to react