At this point in time I'm still receiving error messages when I try to get Google to go to the Image search.
Here is what I have at this time:
Rem Type=Plugin
Rem Name=Google ShowTell
Rem Author=Zabaware, Inc.
Rem Host=Assistant
'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
lblPlugin(0).Caption = "Hal will open your browser and enter a google query if you use the keywords 'show me' in a sentence."
lblPlugin(0).Move 120, 120, 3300, 1000
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
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 = "
https://www.google.com/imghp?gws_rd=ssl"
If InStr(1, UserSentence, "show me", 1) > 0 Then
SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "+"))
SearchKeyWords = Replace(SearchKeywords, "show me+", "")
HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
GetResponse = GetResponse & "I will help you research this topic on the Internet. "
End If
Carl2