dupa

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - knight2000

Pages: 1 ... 4 5 [6] 7 8 ... 11
76
General Discussion / Re: How to manage Hal's database?
« on: August 29, 2017, 10:58:40 am »
This was the forum I saw before with regards to enabling the mic. You had this issue at one point. do you remember if you got it to work? It was probably before Hal 6.2

Code: [Select]
Unfortunetely <SHOWHAL> is an asynchonous call. It does not wait for Hal's window to finish loading before it runs the next command. And <MICON> requires Hal's window to be completely loaded in order to actually turn the microphone on. Giving the command <SHOWHAL><MICON> at the same time will not turn on the mic since Hal's window doesn't have enough time to load before it tries to turn the mic on.

One solution that I can think of would be to run <SHOWHAL> at startup and <MICON> at some point in the future like maybe in the minute timer. Another possibility worth looking into may be <RESPOND>Turn on the Mic</RESPOND> and you would have to program the Hal Brain to turn on the mic when it receives that command. In theory, the <RESPOND> command will load Hal's window, wait for it to load, and then give that query for Hal to respond to, at which point a <MICON> command could be given to turn the mic on.

Also, command line options for Hal don't need a HalCommands= or anything like that. Just straight HalCommand tags should work fine.


http://www.ultrahal.com/community/index.php?topic=4101.0

77
General Discussion / Re: How to manage Hal's database?
« on: August 29, 2017, 10:32:12 am »
@OnTheCuttingEdge If i go to Hal's settings > general section and update the plugin to the new script it throws the error I attached,  however if I restart Hal with the new update he throws the same error as before "Run-time error '430'

Maybe hal's interface needs to completely load up before the microphone can be enabled. I remember in a post a while back that the mic would not work until Hals interface loads. In your code it looks like they are both loading at the same time. Could you try adding a time in between <SHOWHAL>Timer<MICON>

78
General Discussion / Re: How to manage Hal's database?
« on: August 28, 2017, 01:54:46 pm »
That error also occurs when I type in <MICON> to Hal's textbox.

79
General Discussion / Re: Forum Chat?
« on: August 28, 2017, 10:16:12 am »
Do you mean a live chat? If so then definitely!

80
General Discussion / Re: How to manage Hal's database?
« on: August 28, 2017, 10:15:07 am »
@OnTheCuttingEdge Yes if i comment out the<MICON> it works fine. I've had this issue in the past with the <MICON> command. Seems like anytime you try to activate that command it throws that error. Not sure why.

81
General Discussion / Re: How to manage Hal's database?
« on: August 28, 2017, 12:18:10 am »
@OnTheCuttingEdge The following plugin crashes Hal on start up. I attached the error.

Code: [Select]
'Rem Type=Plugin
'Rem Name=Microphone Auto Loader
'Rem Author=Gerald L. Blakley A.K.A OnTheCuttingEdge2005
'Rem Host=Assistant

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "Automatically loads Microphone to On at HAL start up."
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: SCRIPT_LOAD
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.

'AUTO LOAD HAL'S MICROPHONE TO ON AT START UP AND SHOW HAL PANEL.
Script_Load = Script_Load & "<SHOWHAL>"
Script_Load = Script_Load & "<MICON>"

82
General Discussion / Re: How to manage Hal's database?
« on: August 27, 2017, 08:59:56 pm »
@lightspeed That was my problem, Hal was auto learning the response. With help from OnTheCuttingEdge i was able to find those responses in Hal's auto learning table. I deleted them and the weird responses are gone.

83
General Discussion / Re: How to manage Hal's database?
« on: August 26, 2017, 11:21:16 am »
Nice plugin! But my goal is to enable Hal and his microphone on startup of windows, this way i wouldn't have to log into the computer and interact with Hal at all. As soon as the the computer would boot up and Hal loads i would be able to give him speech commands. Is this possible without having to touch the source code?

84
General Discussion / Re: How to manage Hal's database?
« on: August 25, 2017, 06:20:50 pm »
Awesome! I'll convert all of mine to the way you showed! Thanks again!

One more thing,
is there any way to auto enable the mic when Hal starts up? So when I boot the computer there would be no need to have to enable the mic, Hal would just start listening. I've played around with the <micon> command and <showhal> but didn't have much luck with it.

Thanks!

85
General Discussion / Re: How to manage Hal's database?
« on: August 25, 2017, 05:12:03 pm »
@OnTheCuttingEdge

I looked in the auto learning folder and found the keyword and BAM!! I found all the weird responses Hal learned. I right clicked, pressed delete rows and the issue was fixed!! lol. Thank you for your help with this issue. Also thanks for the plugin example, I appreciate you taking the time to do that. My plugin already works great for controlling parts of the house, it was just the issue with that weird responses he gave. Would your example eliminate that problem?

86
General Discussion / Re: How to manage Hal's database?
« on: August 25, 2017, 10:09:44 am »
its not really a conversation. its a plugin with a bunch of commands like the one below:

If InStr(1, UserSentence, "turn off the lights", 1) > 0  Then
        GetResponse = "sure thing"
   Set objWSHShell = CreateObject("WScript.Shell")
       WshShell.SendKeys "^+{T}"
       
End If

but when I tell Hal to "turn of the lights" he replys with "sure thing turn turn off the lights turn off the lights"

I dont know why hes adding the rest at the end when I clearly have a GetResponse defined.

87
General Discussion / Re: How to manage Hal's database?
« on: August 23, 2017, 10:17:56 am »
Thanks for that info onthecuttingedge2005, i had no idea thats how Hal worked when saying his name. I'll keep that in mind for future use.

88
General Discussion / Re: How to manage Hal's database?
« on: August 22, 2017, 12:58:58 pm »
Hi Lightspeed! The problem is that Hal has generated these weird responses. I have a plugin that has commands with custom responses however hal has added onto end the custom response. so for example, if I say "Open chrome" I give hal a custom response of "no problem" but hal adds onto the end of the response like "no problem no problems open chrome no problem" its a weird deal. In the database it is not easy to search for stuff. But i'll keep looking around.

89
General Discussion / Re: How to manage Hal's database?
« on: August 21, 2017, 10:26:59 am »
yeah, thats what im thinking, i know in the brain editor i can say the sentence and he will say that same response, i just wish there was a way we could change his response for that question.

90
General Discussion / How to manage Hal's database?
« on: August 20, 2017, 01:02:11 pm »
Is there a way to find certain responses that Hal says and delete them from his database? Sometimes he learns stuff that doesn't make sense and just says gibberish. I tried searching in the database but i'm not able to find any of those responses. Anyone else have this problem?

Pages: 1 ... 4 5 [6] 7 8 ... 11