1
Programming using the Ultra Hal Brain Editor / VB6 applications
« on: January 08, 2003, 04:00:52 am »
I see,, looks like the HAL application uses the VBSCRIPT BRAIN as the dynamic, user-configurable aspect of the product. From VBSCRIPT there are calls to the HalBrain.DLL
I see no reason why I can't simply create my own COMMAND processing DLL that will accept input from HAL and pass COMMAND verbage to HAL-enabled applications.
It will even be possible to PREFACE keywords to help build application interfaces. When a command is issued to open an application, HAL first looks to see if a PREFACE file exists for it. If found, HAL reads the script and a number of KEYWORDS are prefaced with logic needed to build the interface.
Processing uses something like this:
CMD = HalBrain.TopicSearch(UserSentence, WorkingDir & "CMD.brn")
to illicit a response from HAL that is suited for the application to process the UserSentence content returned in COMMAND.
Then the CMD string is passed to the COMMAND.DLL which sends it to the opened HAL-enabled application. Ideally COMMAND.DLL is generic and suited for use by any developer who wants to use a HAL chatter-bot to optionally interface users to their application.
COMMAND.AUTHENTICATE(CMD) ;Validates HAL's user to the application
COMMAND.DO(CMD) ;Issues the command to the application
COMMAND.ABORT(CMD) ;Terminates processes
COMMAND.CLOSE() ;To require re-authentication.
ETC.
I see no reason why I can't simply create my own COMMAND processing DLL that will accept input from HAL and pass COMMAND verbage to HAL-enabled applications.
It will even be possible to PREFACE keywords to help build application interfaces. When a command is issued to open an application, HAL first looks to see if a PREFACE file exists for it. If found, HAL reads the script and a number of KEYWORDS are prefaced with logic needed to build the interface.
Processing uses something like this:
CMD = HalBrain.TopicSearch(UserSentence, WorkingDir & "CMD.brn")
to illicit a response from HAL that is suited for the application to process the UserSentence content returned in COMMAND.
Then the CMD string is passed to the COMMAND.DLL which sends it to the opened HAL-enabled application. Ideally COMMAND.DLL is generic and suited for use by any developer who wants to use a HAL chatter-bot to optionally interface users to their application.
COMMAND.AUTHENTICATE(CMD) ;Validates HAL's user to the application
COMMAND.DO(CMD) ;Issues the command to the application
COMMAND.ABORT(CMD) ;Terminates processes
COMMAND.CLOSE() ;To require re-authentication.
ETC.