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 ... 9 10 [11]
151
Thank you guys for the reply. I will double check Hal's brain editor. I'll let you know if I find it there.


152
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!

153
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?

154
I figured it out! I just placed this sample code in Hal's HalScript.dbg around line 470 and it worked.

fileToOpen = "C:\Users\Victor\Desktop\anyfilename.lnk"
   If InStr(1, UserSentence, "activate", 1) > 0  Then
        GetResponse = GetResponse & "I will open this for you"
      HalCommands = HalCommands & "<RUNPROG>" & fileToOpen & "</RUNPROG>"
    End If

You can use any keyword you want. I chose "activate" because it works best for me. You can also duplicate this code and assign different keywords to open different files. So you dont have to use the word open all the time. You do not have to update the shortcut.dat file either.

Just be careful not to choose a keyword that you use often when chatting with Hal or he will open the file in the middle of a conversion.

155
Ultra Hal 7.0 / I need Hal to open a program without the "open" command
« on: January 31, 2012, 10:13:19 am »
Is there a plugin or a piece of code I could use to have Hal open a program on the desktop without having to say "open" I'm using Hal to open a C# script that I wrote which will turn on my dash lights in my car. Its works fine but I have to say "open start up" which doesnt sound very impressive to other people watching lol. I want to be able to say "start up" and Hal will open the program. I haven't found a plugin yet for this but I was wondering if you could code it right into Hal's script. Can anyone help with this?

Thanks.

156
Ultra Hal 7.0 / Re: How to get Hal to open any exe file
« on: January 26, 2012, 05:22:46 pm »
Does anyone know of a plugin for this and were to get it?


157
Ultra Hal 7.0 / Re: How to get Hal to open any exe file
« on: January 20, 2012, 03:51:16 pm »
I'm okay with changing the command word from "open" to "activate" Where would i go within the Hal script to change it. There must be a variable stored somewhere within the script.

Thanks!

158
Ultra Hal 7.0 / Re: How to get Hal to open any exe file
« on: January 20, 2012, 12:08:59 pm »
Thanks for the info.

What if we edit the halscript so that when he hears a certain word or phrase he would execute the program. Rough example:

If userSentence<> "test" Then
          GetResponse = "here you go"
          //code for Hal to execute the program
     End If

Would that be possible? If so what would the code look like to execute the program?

Or Is it possible to change the "open" command to a different word like "activate"

159
Ultra Hal 7.0 / Re: How to get Hal to open any exe file
« on: January 20, 2012, 10:39:31 am »
Thank you for the links! That was just what I needed.

One more question. Is there a way to have Hal open the program by saying just the name of the program? Meaning, instead of first saying "open". If I had a program named "test" I would like to be able to just say "test" to Hal and have him open it. Is this possible?

Thanks again!

160
Ultra Hal 7.0 / How to get Hal to open any exe file
« on: January 19, 2012, 06:10:52 pm »
Hello,

Is there a way to have Hal open any exe file located on the desktop? Seems like you could just ask Hal to open "test.exe" and he should open it but thats not the case. Can anyone assist with this? Could I hard code it in Hal's script?

Thanks.

Pages: 1 ... 9 10 [11]