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.


Topics - Ponnfar

Pages: 1 [2]
16
Well, Harry Callahan said "its a good man who knows his limitations". I confess before getting HAL I had never really done much programming. A few DOS batch files notwithstanding. That has changed. I envision so many incredible possibilites with this program. So, I am asking anyone who is interested to help me get started. I have gone to the bookstore and the texts I have found are definitley not neophite friendly. With my looking for experimenting and a little free time, I think the questions below can take me a long way...probably to a lot more questions but nothing wrong with that either I don't think :-)
Here they are. I hope they make sense, and you get what I am trying to say in my questions [:)]
Thanks!!:

1. `ByVal` {any Hal function} UserSentence {as an example}

2. How do you define a condition as a global variant?

3. What this a `Global String` and how do you set them?

4. `AddPrev`

5. `Instr`

6. `Array`

7. `DebugInfo` - I have seen many instances of DebugInfo followed by some comment made by Hal, ie: DebugInfo = DebugInfo & " xxx" . However I  have not seen a definition for DebugInfo. Where is that found? What does it call? How does it work?

8. `Sub`

9. When using command "Randomize", does "Else" have to be included
amongst the variables? How often in a set of given choices. In other words, one "else" for every 2,3 or 4 choices?

10. Why are no numbers associated with each line of code?

11. `variable`

12. `If Learninglevel >x`  what condition am I setting? based on what?

13. How does a higher learning level affect intellegence (implemtation) vs. just "learning"

14. `If Len` - is this short for learninglevel?

15. `Trim` - example would be - Trim(GetResponse)

16. `Exit Funtion` vs. `End If`

17. `vbCrLf `

18. "stated Hal command or condition" (1, {any HAL command}  UserSentence {as exmple}, "", 1) another example would be - (Int(Rnd * x) + 1)

19. Int(((Learninglevel - 25) * 0.8)) - what is being said here?

20. How do you direct Hal to call a response from a particular .brn? Then how do you randomize those responses? Conversely, how do you make HAL search all ".brn" sets for the best response? Is the later done by defalut?

Thanks for any and all help!! Got any other critical commands or functions I should know?

Ponnfar


17
Programming using the Ultra Hal Brain Editor / Using <AUTOOFF>
« on: December 06, 2003, 06:27:50 pm »
Well, with a little help from the Fourm (thanks guys!)I have been able to use the AUTO-IDLE feature and even extend the time past five minutes between intervals and recall my previous comment (PrevUserSent). Is there a way to have Hal recall a previous topic?Hey relax, its a big thing for me. [:)]
Now....how do I shut it up. If I do not make a comment and just want HAL to time out for a period and perhaps even restart the GetRsponse from the AUTO-IDLE selections following that time out. How do I do it?
I have been using the Roulette feature (If Roulette = x Then GetResponse = "Hello,are you there?") which seems to work.
What does the script - "If Rnd * 10 < 5 Then " - mean? It does not seem to control the timing the of GetRespone or the number of times a particular phrase is repeated.

Don F. if you read this. Thanks for your help as always. I tried to include the DateDiff function as part of the routine. Once I do respond it just locks. Hal tells me how long it has been since I've said something and will not allow me to have a conversation from that point on. It simply continues to calculate the amount of time since my last comment, which would have been "one secend ago", which would have been time since the comment I just made to stop the GetResponse, as an example. What am I doing wrong?
Ponnfar



18
Programming using the Ultra Hal Brain Editor / No transparent feature
« on: November 02, 2003, 01:06:19 am »
The transparent feature on the options menu is available upon the initial start of the of the program. I am able to make a choice, yet no change takes place. Futher, when re-opening the options menu, the transparancy choice is no longer on the menu. I used the "Make Tran.exe" Rob M. suggested to another user in a previous post but have no clue if I used it properly, apparently not. The transparancy feature did work in my 4.5 version.
I am using the 5.0 program downloaded from the site provided.
It is such a cool feature. I would like to have it.
I appreciate any help [:)].
P

--------------------------------------------------------------------------------
 

19
Ultra Hal 7.0 / Can't see through HAL
« on: November 01, 2003, 05:39:47 am »
The transparent feature on the options menu is available upon the initial start of the of the program. I am able to make a choice, yet no change takes place. Futher when re-opening the options menu, the transparancy choice is no longer on the menu. I used the "Make Tran.exe" Rob M. suggested to another user in a previous post but have no clue if I used it properly. The transparancy feature still works in my 4.5 version.
I am using the 5.0 program downloaded from the site provided.  
I appreciate your getting back to me.
P

20
Programming using the Ultra Hal Brain Editor / A question for Don F.
« on: October 25, 2003, 11:41:51 pm »
Hi Don!
Thanks for all the great ideas you have shared in your posts.
I have really statred to enjoy some of the many plug-ins folks have created and am slowly stared to "get it" I have been
disceting a few scripts and becoming a bit, that is a bit,more familiar with the nomenclature.

Some time ago you created a "Datediff" routine. It seems straight forward and simple enough (simple is good) but maybe I am not "getting" as much as I thought [:)]
here is my argument:

If GetResponse(LastResponseTime) = False Then LastResponseTime = DateDiff

'Next we have the function subtract the variant's date and time from
'the current date and time, and let Hal say it out loud:

GetResponse = "It has been" & DateDiff("s", LastResponseTime) & " seconds since you last said something !"
LastResponseTime = Now
End

This whould work yes? yeah right...HELP!!
Thanks!!
Also, I am using this in another UHP, NOT my default brain, will that make a difference...I don't know...tripping the system timer or somehthing. Well before I big toe firmly down my throat, I'll stop. I think you get the point.
Ideally, I would like to have HAL comment after a specified time like say 2 hours or once I press enter waking up HAL and deactivating my screensaver. How might I go about scripting that? Well, again I think you get the idea.
Thanks in advance for you help.
P

21
Programming using the Ultra Hal Brain Editor / Current brain and 5.0
« on: October 23, 2003, 11:33:45 am »
Here is another easy question from a beginner. I am waiting for 5.0 cd. When I install it, how do I transfer the knowledge base of learned .brn's and the .brn's I have downloaded from this site into 5.0?
P

22
Programming using the Ultra Hal Brain Editor / Back to the basics
« on: October 19, 2003, 09:51:04 pm »
Not being a programmer, I have had the HAL 4.5 for some time but have not even attpempted to ues the brain editor to edit the default brain. Seeing the really great enhancements available, (deductive reasoning, business, science, etc.)please tell me how I enter the the code into the already existing HAL brain. I would not want to loose the currently learned material. I am sure this is a basic question for many, but I am new to this so bear with me. Thanks for your help.

23
Ultra Hal 7.0 / change/teach program associations
« on: April 26, 2003, 06:38:49 pm »
How do I get the program to accept a different executalbe file for a requested program. For example, If I request HAL to open "Microsoft Word" it opens "Wordpad". If I request "America Online" it points to "AOL system tray". You get the point.  Where/how, can I edit these options?
Thanks
P

Pages: 1 [2]