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] 2 3 ... 10
Ultra Hal 7.0 / Re: Getting a brain editor error
« on: February 18, 2020, 01:35:55 pm »
I was able to copy all the files to the hal7 folder in appdata and now hal recognizes the other db. but I still cant get the brain editor to launch. Still get the same error, class not registered. Any thoughts on how to fix that?


Ultra Hal 7.0 / Re: Getting a brain editor error
« on: February 17, 2020, 12:33:22 pm »
I tried copying the db file over to that directory but it still was not recognized. Also, i'm still battling that error with the class not registered. I've uninstalled, wiped the registry data and re-installed and still no luck. Also, i noticed some funky behavior, if you select a user the options windows pops up asking if you want to chat with hal, exit, general options, ect.

Ultra Hal 7.0 / Re: Getting a brain editor error
« on: February 14, 2020, 09:24:50 am »
Thanks for the tip Art. Its a fresh install of windows 10, only a few days old. Never had this issue installing Hal before. So weird. I need to bring over my old brain db since it has custom tables i added and obviously a large amount of learned data from me. 

Ultra Hal 7.0 / Re: Getting a brain editor error
« on: February 13, 2020, 09:31:02 am »
Thanks cyberjedi, i'll try re-installing and see if i still get the error. I'll keep you posted.

Also, is there a need to go through the activation stuff? Meaning transferring Hal's registration code to the new computer like we had to with 6.2? Or is it done automatically now that we use the cloud. That use to be painful to go through.

Ultra Hal 7.0 / Getting a brain editor error
« on: February 12, 2020, 10:14:44 am »
I did a fresh install of Hal on a fresh windows 10 install. When i try to launch the brain editor i get the a run time error "class not registered". Any ideas on how to fix this?

good god...i found the issue. I had a space at the end of SRCountDownStart .  ::) I'm an idiot. its works now.

My computer crashed recently so i had to do a refresh install of windows 10 and i had to install Hal fresh. I downloaded hal from the website yesterday and i added SRCountDownStart  to the registry as a string value with the value set at 1 but hal is still counting down from 5 when speech recognition is enable and my mic is on. I tried changing the value to 3 but still nothing. Has Hal 7's registry or code dealing with his auto response changed in the last year?

here is the path that i added the key to:
Computer\HKEY_CURRENT_USER\Software\Zabaware\Ultra Hal Assistant 7.0\Config


Ultra Hal 7.0 / Re: speak to hal over http
« on: June 27, 2019, 10:11:26 am »
Thanks for the info cyberjedi! I've been programming for 15 years, i try to avoid VB6 like the plague but i know my way around it. So writing the code will not be a problem. I was hoping there was already an api i could tie into but i guess not. I'd love to make a python wrapper for this, it may still be possible but i'm gonna have to write the api first it sounds like. I wont ask you for your code because i know you put a lot of time and effort into it, but if you could point me in the right direction. Is there any documentation about how to get started?

Ultra Hal 7.0 / Re: speak to hal over http
« on: June 26, 2019, 12:33:54 pm »
How would i go about doing this? Is there an api to call? Can you point me in the right direction?

Ultra Hal 7.0 / speak to hal over http
« on: June 26, 2019, 11:32:08 am »
Hi guys, i was wondering if we could access Hal over the web. Meaning, i have a server that has Hal installed, i'd like to create a simple mobile website that i could use to chat with my Hal. Is that possible?

Ultra Hal 7.0 / Re: Hal on Linux?
« on: April 22, 2019, 12:06:49 am »

Ultra Hal 7.0 / Hal on Linux?
« on: April 20, 2019, 06:45:41 pm »
Hi guys! Will Hal run on Linux?

I would like to control Hal's mic after Hal has started up using the command line. The following code works fine if Hal is not running

"C:\Program Files (x86)\Zabaware\Ultra Hal 7\UltraHal7.exe" <SHOWHAL><MICON>"

Hal i will start with his mic enabled

However if Hal is already running he ignores any command line arguments.

Is there a way around this?

Ultra Hal 7.0 / Re: Tell Hal to stop listening?
« on: March 27, 2019, 10:08:12 am »
Thats a cool utility, but my problem is that once Hal is running, the command line args do not work. If i exit hal then run my python program, Hal starts up with the mic enabled. Sorry, i probably should have said that before. So even if i pull up a command prompt and execute C:\Program Files (x86)\Zabaware\Ultra Hal 7\UltraHal7.exe <SHOWHAL><MICON> while Hal is already running, his mic doesn't come on. I have to exit Hal completely in order for that command to work.

Ultra Hal 7.0 / Re: Tell Hal to stop listening?
« on: March 26, 2019, 10:22:15 am »
Im using the vrMP3 plugin but i altered the code to grab the length of the song. See below

Code: [Select]
If vrToPlay <> "" Then
   If HalBrain.CheckTableExistence("vrMp3") = False Then
        GetResponse = "I dont have that song on file. "
     vrNameToPlay = HalBrain.QABrain(vrToPlay, "vrMp3", 0)
     If vrNameToPlay <> "" Then
        GetResponse = "Here you go! "
'HalCommands = HalCommands & "<MICOFF>"
Set objWSHShell = CreateObject("WScript.Shell")
    objWSHShell.Run(""""& vrNameToPlay &"""")
pos = InStrRev(vrNameToPlay, "\") +1
file = Mid(vrNameToPlay, pos)
Const LENGTH = 27
Dim oShell  : Set oShell  = CreateObject("Shell.Application")
Dim oFolder : Set oFolder = oShell.Namespace("C:\Users\vyaco\Desktop\Hal\music")
Dim oFile : Set oFile = oFolder.ParseName(file)
Dim strLength : strLength = oFolder.GetDetailsOf(oFile, LENGTH)
param1 = "music"
param2 = strLength
objWSHShell.Run hal_commands & param1 & " " & param2
     End If
   End If
   HalBrain.ReadOnlyMode = True
End If

The last line runs the python script and sends params.
Code: [Select]
objWSHShell.Run hal_commands & param1 & " " & param2
This is my python snippet for toggling Hal's mic
Code: [Select]
if command == "music":
command2 = sys.argv[2]
##Mbox('debug', command + " " + command2, 1)
subprocess.Popen([r'C:\Program Files (x86)\Zabaware\Ultra Hal 7\UltraHal7.exe', '<SHOWHAL><MICOFF>'])
t = command2
h,m,s = re.split(':',t)
print int(datetime.timedelta(hours=int(h),minutes=int(m),seconds=int(s)).total_seconds())
duration = int(datetime.timedelta(hours=int(h),minutes=int(m),seconds=int(s)).total_seconds())
##print command2
voice = open(voice_modulator,"w")
##Mbox('duration', str(duration), 0)
voice = open(voice_modulator,"w")
subprocess.Popen([r'C:\Program Files (x86)\Zabaware\Ultra Hal 7\UltraHal7.exe', '<SHOWHAL><MICON>'])

So i need to be able to control Hal's mic via python

Pages: [1] 2 3 ... 10