Exemplo n.º 1
0
        public override void StartNewChat(Cleverbot bot)
        {
            bot.NewConversation();
            Debug.WriteLine("Starting new chat...");

            List <HtmlElement> leaveButtonElements = GetElementsByClassName("img", "leavebuttonimg");

            if (leaveButtonElements.Count > 0)
            {
                leaveButtonElements[0].InvokeMember("Click");
            }

            List <HtmlElement> startNewChatElements = GetElementsByClassName("img", "startanewchatimg");

            if (startNewChatElements.Count > 0)
            {
                startNewChatElements[0].InvokeMember("Click");
            }
        }
Exemplo n.º 2
0
 public override void StartNewChat(Cleverbot bot)
 {
     bot.NewConversation();
     webBrowser.Document.InvokeScript("startNewChat");
 }
Exemplo n.º 3
0
 private void buttonNewConv_Click(object sender, EventArgs e)
 {
     cleverBot.NewConversation();
 }