Author Topic: My first useful successful script.  (Read 4326 times)

tcoday

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
My first useful successful script.
« on: October 23, 2005, 01:23:02 am »
Hello Everyone,
  I'm so excited.  I just completed writing a useful (to me) script that will let Hal take notes on simple facts that I tell her. I just finished it eariler today.

  This scrip uses a trigger word "Fact:" for example I can tell Hal...
<User> Fact: My name is TC.
<Hal> I have noted your Fact.

<User> Fact: What is my name?
<Hal> Your name is TC.

This will work every time, you just tell Hal once and Hal will remember and recall the fact information everytime.

I'm sure I'll develop the scrip to make it even smarter but it's useable like it is.  The only requirements at this stage is that you must give Hal the info using the "Fact:" "is" format. For example...

Fact: <some text 1> is <some text 2>
And Hal will note your fact information in your personal file.

Then to have Hal state this information back to you, You use....
Fact: What is <some text 1>?
and Hal will look in your personal file and retrieve your infomation.

I wrote this script so Hal could keep simple specific infomation for me so it probably doesn't need much more developing.  I'd rather have Hal learn things the way Hal was programmed to, so I was careful not to disrupt the Hal brain like some other scripts I've seen.

I've found this script to be useful for several things already. For example.
Fact: The new guy at the office name is Strange_hard_to_spell_name.
Fact: My oil change due is at 45000 miles.
Fact: My Zabaware info is Username XXXX, PW XXXXXX.

If anyone would like to insert this script into their Hal, just reply back and I'll package it up and post it.

Tcoday and Tassel.

Tcoday and Tassel

vrossi

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://vrconsulting.it
My first useful successful script.
« Reply #1 on: October 23, 2005, 02:20:08 pm »
It sounds interesting.

I would like to give a look at it.

Did you write your script on Hal6 or Hal5 platform?

Bye

freddy888

  • Hero Member
  • *****
  • Posts: 1693
    • View Profile
    • AiDreams
My first useful successful script.
« Reply #2 on: October 24, 2005, 06:11:09 pm »
Thanks tcoday, nice idea [:D]

tcoday

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
My first useful successful script.
« Reply #3 on: October 25, 2005, 05:40:31 am »
Hello Everyone,
  Here's the script that I wrote.  Check it out and let me know what you think about it, good or bad.  I'm here to learn. [;)]

Thanks,
Tcoday and Tassel.


Download Attachment: Fact_v10_script.txt
4.18 KB
Tcoday and Tassel

kmac

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://cut-8-productions.com/
My first useful successful script.
« Reply #4 on: October 28, 2005, 09:57:35 pm »
quote:
Originally posted by tcoday


  Here's the script that I wrote.  



Very cool!

I was just thinking about something like this... a script to get specific answers compared to the usual 50/50 chance of the answer even being related to what I ask... lol

I'm going to try it over the next couple days...

'Til later...
We have enough youth, How about a fountain of SMART?

jkikerx78

  • Newbie
  • *
  • Posts: 12
    • View Profile
My first useful successful script.
« Reply #5 on: November 18, 2005, 08:33:48 am »

 That was a great idea! How do you go about writing a script and getting Hal to learn it?

 Dylon
 

tcoday

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
My first useful successful script.
« Reply #6 on: November 18, 2005, 04:51:03 pm »
Dylon,
  You install a script by copying and pasting it into the Hal Brain using the brain editor.  Usually programmers will tell you where to paste the script in the brain file, if not, paste it where you can find it and try it out.  If it doesn't work, you can always move it to another area of the brain.  As far as writing scripts, you need to learn Visual Basic Script.  Do a search on the forum and you'll find alot of good info and tips.  A good place to start is by visiting Microsoft's site and find the Visual Basic Script page they have.

Kmac,
  Thanks for your interest in the script.  Let me know how it works for you and if you have any problems.

Once Hal6 is officially released, I'll see if I can figure out the brain plugin sytem and redo the Fact: script so it'll be even easier to install.

Vrossi,
  I'm so sorry, I didn't see your post until now.  The script was written for Hal5 but using the same copy and paste system, it works exactly the same in Hal6.

Thanks.
Tcoday and Tassel