Recent Posts

Pages: [1] 2 3 ... 10
1
Programming using the Ultra Hal Brain Editor / Re: grabbing hals output
« Last post by peace on February 10, 2016, 09:44:02 pm »
i thik you could do that with the code i wrote and just change it around a bit for a different, all my code really does is put hals responce into the clipboard and then runs a vbs. file to open a program and paste the clipboard
2
Speech Technology / Zabaware Reader starts reading from clipboard on its own.
« Last post by amadeok on February 10, 2016, 02:08:26 pm »
Hello,
I'm having this problem with Zabaware Reader, I copy something to the clipboard, it reads it, but after a little while it reads it again without any reason. I tried uninstalling and installing.
thanks in advance
3
   A big Thanks OTC, Seems you've solved the problem, it had needed the End If.  it ends the error and gets the reply from the afreetalk. 

If HalBrain.TopicSearch(UserSentence, ("FreeDetect1")) = "True" Then
  GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("afreetalk")
 HalBrain.DebugWatch GetResponse, "afreetalk"
End If

  afreetalk is a sentence file located in basicResponse and FreeDetect1 is a Topic search table located in miscData,  FreeDetect1 contains the  detect word and the topic is True.
 
Probably a lot more can be done with this as Robert has already shown with his scripting
Thanks again
Carl2
4
not gonna work: General
It took a while but I did give it a try and as OTC said it's not gonna work.  Rather strange results when putting it in with a few other plugins, I originally got an error about an if statement, took out all the plugins and it was okay, put in the test plugin and it was okay added a few more and still okay.  Gave it a try and it's not working.

If HalBrain.TopicSearch(UserSentence, "afreetalk") = "True" Then
  GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("FreeDetect1")   
So simple why doesn't it work

It seems Gender and age is okay,  if I use freewill and the test plugin together there is an error, either one by itself and gender and age  there is no error.
Carl2

Hi Carl.


there are different table versions that are answered differently, correct format of calling it need be acounted.

the table you call afreetalk must exist and contain information otherwise it will give an error possibly a blank response. make sure to have the table created upon s specific response or you will get another error especially if that table contains no info.

TopicSearch responses contain a trigger and a response simular to "guess what","what?" except they are in a table now and not the usual text trigger.

make sure:

If HalBrain.TopicSearch(UserSentence, "afreetalk") = "True" Then   '<--- make sure table exists and with info already in it...
  GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("FreeDetect1") '<--- make sure table exist and with info in it....

End If ' <--- end your If
5
  I'm going to fast and making mistakes but it was interesting
 
If HalBrain.TopicSearch(UserSentence, ("FreeDetect1")) = "True" Then
  GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("afreetalk")
I had found the plugin script was not placed in HalScript file, I opened it and it was not in the HalScript.
I placed the plugin in area2 and saw it needed a second end parentheses made the correction restarted hal  but it still didn't work.   I may try pasting it in the brain.
Carl2
6
not gonna work: General
It took a while but I did give it a try and as OTC said it's not gonna work.  Rather strange results when putting it in with a few other plugins, I originally got an error about an if statement, took out all the plugins and it was okay, put in the test plugin and it was okay added a few more and still okay.  Gave it a try and it's not working.

If HalBrain.TopicSearch(UserSentence, "afreetalk") = "True" Then
  GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("FreeDetect1")   
So simple why doesn't it work

It seems Gender and age is okay,  if I use freewill and the test plugin together there is an error, either one by itself and gender and age  there is no error.
Carl2
7
If InStr(UserSentence, "General") > 0 Then
      GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("FreeTalk")
There are 6 types of tables that can be put in, the FreeTalk table is a sentence table put in basicResponses and the detect table is a topicsearch table that is put in miscData.  The FreeTalk table is similar to the apology table in that it just contains a series of sentences Hal can choose from.
  What I had attempted to do was eliminate the Detect table by using   " If InStr(UserSentence, "General") > 0 Then "  so if I type in General in the input box Hal will go to the next step and get a reply from FreeTalk   but that is not happening.
  While looking through the brain script it seems one of the simplest things is the joke
     If HalBrain.TopicSearch(UserSentence, "jokeDetect") = "True" Then GetResponse = GetResponse &   HalBrain.ChooseSentenceFromFile("jokes")
    HalBrain.DebugWatch GetResponse, "Jokes"

Well I guess I can change names and give it a try.

not gonna work: General
Carl2
8
If InStr(UserSentence, "General") > 0 Then
      GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("FreeTalk")
There are 6 types of tables that can be put in, the FreeTalk table is a sentence table put in basicResponses and the detect table is a topicsearch table that is put in miscData.  The FreeTalk table is similar to the apology table in that it just contains a series of sentences Hal can choose from.
  What I had attempted to do was eliminate the Detect table by using   " If InStr(UserSentence, "General") > 0 Then "  so if I type in General in the input box Hal will go to the next step and get a reply from FreeTalk   but that is not happening.
  While looking through the brain script it seems one of the simplest things is the joke
     If HalBrain.TopicSearch(UserSentence, "jokeDetect") = "True" Then GetResponse = GetResponse &   HalBrain.ChooseSentenceFromFile("jokes")
    HalBrain.DebugWatch GetResponse, "Jokes"

Well I guess I can change names and give it a try.
Carl2
9
Sorry Carl but how is the Free Talk Table written? I think your choices are limited with both things you mention which would be to redirect using key words or possibly replacing one of the existing detect Tables. Using the nickname detect table as an example. Which leaves you to possibly having to enter all that info again. I would have thought that your new detect script would have worked for you but then I don't have a Free Talk Table and I would think that the way it's written could be the error response you get.

I may not have helped at all but I did look at the tables and as you mentioned, it would look as your idea could work but depending on how the table information is written for a particular detect table would be the answer. I'm just trying to give some input.

raybe
10
General Discussion / 5 robotic gadgets you should buy
« Last post by lightspeed on February 07, 2016, 08:45:41 am »

5 robotic gadgets you should buy
https://www.youtube.com/watch?v=Z02p2LKkrbE
Pages: [1] 2 3 ... 10