dupa

Author Topic: Where is "I am executing this program for you" stored within Hal  (Read 7015 times)

knight2000

  • Full Member
  • ***
  • Posts: 155
    • View Profile
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?

knight2000

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: Where is "I am executing this program for you" stored within Hal
« Reply #1 on: February 01, 2012, 03:11:04 pm »
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!

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3855
    • View Profile
Re: Where is "I am executing this program for you" stored within Hal
« Reply #2 on: February 02, 2012, 05:32:34 am »
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.
In the world of AI it's the thought that counts!

- Art -

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Re: Where is "I am executing this program for you" stored within Hal
« Reply #3 on: February 02, 2012, 01:38:21 pm »
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.
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

knight2000

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: Where is "I am executing this program for you" stored within Hal
« Reply #4 on: February 02, 2012, 06:10:23 pm »
Thank you guys for the reply. I will double check Hal's brain editor. I'll let you know if I find it there.


onthecuttingedge2005

  • Guest
Re: Where is "I am executing this program for you" stored within Hal
« Reply #5 on: February 02, 2012, 07:54:08 pm »
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.

Code: [Select]
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)

knight2000

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: Where is "I am executing this program for you" stored within Hal
« Reply #6 on: February 03, 2012, 04:35:07 pm »
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?

onthecuttingedge2005

  • Guest
Re: Where is "I am executing this program for you" stored within Hal
« Reply #7 on: February 03, 2012, 05:31:43 pm »
you could try to replace the line with.

Code: [Select]
'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

knight2000

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: Where is "I am executing this program for you" stored within Hal
« Reply #8 on: February 03, 2012, 05:48:59 pm »
Hi Jerry,

That didn't work. :(

knight2000

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: Where is "I am executing this program for you" stored within Hal
« Reply #9 on: February 07, 2012, 03:45:47 pm »
Can anyone else help with this? There has to be a way to change Hal's response to opening a program.