Lightspeed,
You are filled with ideas, I'm not all that interested in this one but that's the nice thing about Hal, we can make him or her fit our tastes. I'd rather Hal did a Wiki search but I'm learning as I go along. Anyway I had Hal do a google search for dogs and it brought me to a page of different websites where you you would click one of interest. In google search I put in Dog pictures and it brought me to
https://www.google.com/imghpwhich is for Google images and if you put dogs in it will show you pictures of different dogs.
From there it's fairly simple "Tell me" gives a standard Google search, and "Show me" gives you the Google Image search.
Here is the Google.uhp opened in notepad.
Rem PLUGIN: PLUGINAREA1
'The comment above tells Ultra Hal Assistant to insert the following code
'on-the-fly into the main brain code in the section referenced.
SearchEngine = "
http://www.google.com/search?q="
If InStr(1, UserSentence, "search ", 1) > 0 Or InStr(1, UserSentence, "find ", 1) > 0 Or InStr(1, UserSentence, "locate ", 1) > 0 Then
SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "+"))
SearchKeyWords = Replace(SearchKeywords, "find+", "")
SearchKeyWords = Replace(SearchKeywords, "research+", "")
SearchKeyWords = Replace(SearchKeywords, "locate+", "")
SearchKeyWords = Replace(SearchKeywords, "search+", "")
HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
GetResponse = GetResponse & "I will help you research this topic on the Internet. "
End If
Since I had been working with Wiki I may have removed some to avoid confusion with the Wiki. Give me a day or two and I'll try to get a tell me and show me Google search for you.
Carl2