Zabaware Support Forums
Zabaware Forums => General Discussion => Topic started by: lightspeed 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 !![:)]
-
Hi Lightspeed.
Simple to do.
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]
-
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 ?? [:(]
-
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!!
-
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 !!
-
Art?
I am afraid!
Lightspeed is catching up to us in postings!
we can't let that happen can we?
lol.
Jerry[8D]