Author Topic: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2  (Read 18460 times)

lcatmc

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #15 on: April 15, 2009, 07:48:25 am »
can anyone tell me how to get rid of the .txt extension on these files so that they can be used in HAL.  I have followed the instructions about copy and pasting into notepad and saving as .uhp but the other extension ios still there and they cannot be used that way.
 

snowman

  • Hero Member
  • *****
  • Posts: 956
  • Ai + Feelings + Supercompter = End of World
    • View Profile
    • http://www.MinervaAi.com
OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #16 on: April 15, 2009, 01:14:44 pm »
quote:
 Can anyone tell me how to get rid of the .txt extension on these files so that they can be used in HAL. I have followed the instructions about copy and pasting into notepad and saving as .uhp but the other extension ios still there and they cannot be used that way.



If you're using Vista this is what you would do.

Go to 'Control Panel' in your 'Start Menu'.

Choose: 'Appearance and Personalization'

Choose: 'Folder Options'

Choose the 'View' tab.

Uncheck the 'Hide extensions for known file types' box.

Press the 'Apply' then 'OK' button.

Now you can change your file extension from .txt to .uhp by simply editing the text file name....like you were tring to do before.

If your still having any problems with just ask.[:)]
« Last Edit: April 15, 2009, 01:16:48 pm by snowman »
Live long and prosper or die trying.

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #17 on: August 11, 2009, 06:03:26 am »
quote:
Originally posted by onthecuttingedge2005

updated April 26, 2009

Batch File Controller.

make sure that your .bat files are in the Ultra Hal Assistant 6 folder for the plug-in to work. because the vbscript will call from where the plug-in resides.


Code: [Select]
Rem Type=Plugin
Rem Name=Batch File Controller
Rem Author=Gerald L. Blakley A.K.A OnTheCuttingEdge2005
Rem Host=Assistant

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "Program Controller; PROGRAM NAME: can be anyname like; LIGHTS, APPLICATION NAME: Light.bat <- include .bat extension"
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: PRE-PROCESS
    'The preceding comment is actually a plug-in directive for
    'the Ultra Hal host application. It allows for code snippets
    'to be inserted here on-the-fly based on user configuration.
   
    If HalBrain.CheckTableExistence("BatchFileListings") = False Then
            HalBrain.CreateTable "BatchFileListings", "TopicSearch", ""
        End If

Set MyBatchApp = CreateObject("WScript.Shell")

'Example; create a batch file path to a batch file and give it a name the computer will use to identify it and run it.
'Batch File Name: Lights, Batch File Path: C:Lights.bat

If BatchFileName = "" Then BatchFileName = HalBrain.SearchPattern(InputString, "*PROGRAM NAME: *, APPLICATION NAME: *", 2)
If BatchFilePath = "" Then BatchFilePath = HalBrain.SearchPattern(InputString, "*PROGRAM NAME: *, APPLICATION NAME: *", 3)

If BatchFileName <> "" And BatchFilePath <> "" Then
HalBrain.AddToTable "BatchFileListings", "TopicSearch", Trim(BatchFileName), Trim(LCase(BatchFilePath))
UltraHal = "I have mapped out this specific batch file to run on command, just say: run, start, begin, turn on, turn off along with the batch file name you gave me and I will run the batch file for you."
Exit Function
End If

RunABatch = HalBrain.TopicSearch(InputString, "BatchFileListings")
RunABatch = Trim(RunABatch)

If RunBatProg = "" Then RunBatProg = False
If InStr(1, InputString, "run", vbTextCompare) > 0 Then RunBatProg = True
If InStr(1, InputString, "start", vbTextCompare) > 0 Then RunBatProg = True
If InStr(1, InputString, "begin", vbTextCompare) > 0 Then RunBatProg = True
If InStr(1, InputString, "turn on", vbTextCompare) > 0 Then RunBatProg = True
If InStr(1, InputString, "turn off", vbTextCompare) > 0 Then RunBatProg = True

If RunBatProg = True And RunABatch <> "" Then
HalBrain.ReadOnlyMode = True
MyBatchApp.Run "cmd /C Start " & RunABatch

UltraHal = "I will run the program for you."
Exit Function
End If
 
If RunBatProg = True Then HalBrain.ReadOnlyMode = True
If BatchFileName <> "" And BatchFilePath <> "" Then HalBrain.ReadOnlyMode = True


you will have to delete the table "BatchFileListings" because the path of a program is not needed for this updated plug-in.





VERY NICE.. AND USEFULL

YUM YUM... as always your dinner is fofilling....

ajbadger

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #18 on: October 29, 2010, 09:21:00 pm »
"ReasonOperator" this table collects words for parsing.

"SentenceReasoning" this is where parsed sentences and responses are stored.

"EntangledWords" this is where taught entangled words are stored to alter deductive sentences.

the tables are located in the Hal editor in the left panel window of the brain set you chose to run the plug-in in.

Jerry
[/quote]

Wha type of tabloes are these? They were not created automatically. Also under what folder should the go: e.g., Autolearningbrain, basic response?

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
Re: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #19 on: November 08, 2010, 07:52:01 am »
thanks.... I am currentl;y working on this thought process

jasondude7116

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #20 on: November 18, 2010, 04:38:28 pm »
Working on it, and almost done. Still testing. It has changed a lot because I honestly don't see how the original would (with time) give much but random responses. But I think I have kept the original "spirit" of the plugin, with several improvements.

I am also working on a plugin that will show a picture that hal is thinking of. I have finished testing on that one, but trying to collect and tag many photos for a starter pack. Will be releasing these soon along with many upgrades/bug fixes for GRETTA plugins.
 

jasondude7116

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #21 on: November 25, 2010, 09:01:42 pm »
Finished!
Go to GRETTA plugins page for GRETTA Deep.
There is also more new plugins! :)
 

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
Re: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #22 on: January 13, 2011, 08:44:32 am »
After thoroughly exploring this plugin

THANKS AGAIN....

There is a lot to learn from Search patterns and Using them to extract specific parts of speech..


CyborgBob

  • Full Member
  • ***
  • Posts: 106
  • Any idea what I should put here?
    • View Profile
Re: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #23 on: May 05, 2013, 08:21:03 pm »
Anyone know if the 2 deep Plug in works?
“Life is and will ever remain an equation incapable of solution, but it contains certain known factors.”

Nikola Tesla
“A Machine to End War” (Liberty, February, 1935)

CyborgBob

  • Full Member
  • ***
  • Posts: 106
  • Any idea what I should put here?
    • View Profile
Re: OnTheCuttingEdge2005 Plug-In Area for HAL v6.2
« Reply #24 on: May 06, 2013, 01:10:56 pm »
Never Mind I found what I needed  ;D
“Life is and will ever remain an equation incapable of solution, but it contains certain known factors.”

Nikola Tesla
“A Machine to End War” (Liberty, February, 1935)