Zabaware Support Forums
Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: knight2000 on January 31, 2012, 04:25:36 pm
-
Hi everyone.
I would like to edit when Hal says "I am executing this program for you". Can anyone help me find where this is located in Hal's script?
-
Can anyone help with this? There must be a place where this is stored in one of Hal's script files. Basically I dont want Hal to say anything when you tell him to open a file. I've checked the database in Hal's brain editor but i found nothing. Any help would be great!
-
Can't say for sure but there are commands and other instructions contained within
some of Hal's core files and they aren't made to be accessible by the user.
Hopefully someone else might chime in with a more detailed response.
-
Hi all,
if I'm not mistaking, I do believe that I remember seeing an area in the brain editor.
It was in this section that had to do with input response to activate a program using keywords like run, open, execute, and about a half a dozen other words.
Based on how you asked Hal to execute the program or text file etc. Hal would respond in a random sentence being the most appropriate for the one that you used to get Hal to open the program.
For myself, I use Dragon NaturallySpeaking its a much more proficient way to execute programs, and way more accurate, a lot easier to program because the program itself is specifically designed to do exactly that, I do not use my Dragon inside of Hal I use it outside of Hal, and I've turned off Hal's ability to execute programs, which by the way, the more you turn off, inside of Hal, the faster Hal will work.
Sincerely,
C load.
-
Thank you guys for the reply. I will double check Hal's brain editor. I'll let you know if I find it there.
-
I believe it is this plugin here. the name of the script is runprograms.uhp and here is the code inside.
you can also uncheck this plugin [Run Programs by Name] in Hals plugin options.
Rem Type=Plugin
Rem Name=Run Programs by Name
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 = "If you tell Hal to open any program in your Start Menu, Hal will find it and run it for you. For example, you can tell Hal 'Open Paint' and Hal will execute the program Paint."
lblPlugin(0).Move 120, 120, 3300, 1200
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.
'PROCESS: HAL COMMANDS
'The halCommands pattern table allows the user to issue commands to open programs or
'Ultra Hal Assistant dialogs to the Ultra Hal Assistant host app. If the host app is
'not Ultra Hal Assistant (such as AIM Bot or Web Hal), then these HalCommands will
'simply be ignored.
HalCommands = HalCommands & HalBrain.PatternDB(UserSentence, "halCommands")
Jerry 8)
-
Thanks Jerry,
I've already looked into this file but I dont see anywhere where you can edit Hal's response. I looked in the "pattern" section of the brain editor but I couldn't find it. How can we keep Hal from saying anything when opening a file?
-
you could try to replace the line with.
'PROCESS: HAL COMMANDS
'The halCommands pattern table allows the user to issue commands to open programs or
'Ultra Hal Assistant dialogs to the Ultra Hal Assistant host app. If the host app is
'not Ultra Hal Assistant (such as AIM Bot or Web Hal), then these HalCommands will
'simply be ignored.
HalCommands = HalCommands & HalBrain.PatternDB(UserSentence, "halCommands")
If HalCommands <> "" Then
If GetResponse <> "" Then GetResponse = ""
End If
it might work, try it and see if it does the job.
Jerry
-
Hi Jerry,
That didn't work. :(
-
Can anyone else help with this? There has to be a way to change Hal's response to opening a program.