dupa

Author Topic: lightspeed idea on date of month  (Read 3306 times)

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
lightspeed idea on date of month
« on: December 02, 2007, 09:21:57 am »
maybey this idea is already out their but it would be nice if their was a future plug in or in the hal software that if you ask " what day is this ? hal would say "today is tuesday december 21 , 2007 " . i know most people know what day it is butthis way hal would say the day the number and the year !!" i usually ask my wife sometimes what number of the month it is (example the 21st ) . just thought this would be nice to have in hal this way !![:)]
 

onthecuttingedge2005

  • Guest
lightspeed idea on date of month
« Reply #1 on: December 02, 2007, 10:26:50 am »
Hi Lightspeed.

Simple to do.

Code: [Select]
Rem Type=Plugin
Rem Name=Date Plugin
Rem Author=Gerald L. Blakley A.K.A OnTheCuttingEdge2005
Rem Host=All

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "This is just a Date plugin, ask, What is today?"
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub


 
Rem PLUGIN: PLUGINAREA7

If InStr(1, UserSentence, "what is today", vbTextCompare) > 0 Or _
InStr(1, UserSentence, "the day today", vbTextCompare) > 0 Or _
InStr(1, UserSentence, "what is the date", vbTextCompare) > 0 Then
GetResponse = " Today is " & FormatDateTime(Date(),1)
End If


Jerry[8D]

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
lightspeed idea on date of month
« Reply #2 on: December 05, 2007, 12:47:26 pm »
hello jerry thanks for this plug in , maybe i did it the wrong way been a while .  i copied it made a text file pasted it inside renamed it and place uhp at the end and placed it in the hal program folder but can't get it to do anything (i also didn't leave any spaces on the letters of the name of the file (before the .uhp) what am i doing wrong here ?? [:(]
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3859
    • View Profile
lightspeed idea on date of month
« Reply #3 on: December 05, 2007, 07:24:37 pm »
lightspeed,

Jerry plugin works fine.

Once you have it copied to the main UltraHal folder
do the following:

Start Hal
Select Options
Select Brain
At the right side locate Jerry's Date plugin
Check the box
Click Apply/OK
Chat with Hal

Ask "What is today?"
Hal should respond with both the day of the week and the numerical date (Today is Wednesday, December 5, 2007)

Good luck!!
In the world of AI it's the thought that counts!

- Art -

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
lightspeed idea on date of month
« Reply #4 on: December 06, 2007, 02:41:22 pm »
hello art and jerry , thanks to jerry for making thiis plug in and to you art for writing , actually the plug in is fine (i figured it was and i was doing something wrong and didn't think about it till art said to check the program in the brain file ( this is what you all call a homer simpson moment !! lol ) and as popey would say "how embaraskin !!" i told you it had been a while since i had messed with any plug ins with hal !![:)]plug in works great !! thanks again !!
 

onthecuttingedge2005

  • Guest
lightspeed idea on date of month
« Reply #5 on: December 06, 2007, 04:32:24 pm »
Art?

I am afraid!

Lightspeed is catching up to us in postings!

we can't let that happen can we?

lol.

Jerry[8D]