Author Topic: where is the wiki plugin  (Read 20140 times)

catseye

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
where is the wiki plugin
« on: April 09, 2010, 01:18:06 pm »
I have been looking all day but I can't seem to find the wiki plugin. dose some one know where it is
 

DarcyEdwards

  • Full Member
  • ***
  • Posts: 196
    • View Profile
where is the wiki plugin
« Reply #1 on: April 09, 2010, 02:38:38 pm »
Here  is the Wiki.uhp file I wrote a couple years ago, hope it's what you want

"lookup" is the keyword to use.  For example type:

lookup George Washington

Hal will exicute Wikipedia for you and pass "George Washington" as paramaters to it.




Download Attachment: wiki.uhp
1.33 KB
« Last Edit: April 09, 2010, 02:49:56 pm by DarcyEdwards »
Hugs

-Darcy

MrsEdwards01@aol.com

catseye

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
where is the wiki plugin
« Reply #2 on: April 09, 2010, 02:45:56 pm »
no thats not it. it was one where hal learned things from wikipedia
 

catseye

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
where is the wiki plugin
« Reply #4 on: April 10, 2010, 10:54:33 am »
i have installed the wiki uhp and said please study about love
it came back and said : I have looked up the study of love
and thats all it said i thought the wiki uhp would tell you what it found and say it .
what exactly does the wiki uhp do then ? does it look up the information store it for future use in conversations or tell you some other time when you say something ?
i am confused on this .
[B)]
 

DarcyEdwards

  • Full Member
  • ***
  • Posts: 196
    • View Profile
where is the wiki plugin
« Reply #5 on: April 10, 2010, 11:39:03 am »
Lightspeed,

My version of wiki.uhp will load and run Wikipedia and pass love as the subject for it to lookup.  But the command is "Lookup" love. OTCE version reads wijipedia and routs the output to a .brn file for you to do something with later, hal does not learn from it.
Hugs

-Darcy

MrsEdwards01@aol.com

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
where is the wiki plugin
« Reply #6 on: April 10, 2010, 11:53:39 am »
thanks DarcyEdwards, then i will uninstall the other and put yours in because from what you are saying hal learns it thats what i want is my hal to learn . thanks for writing back . [:)]
p.s.
does hal say what the exact thing is that she found so you know right off what is going to be learned ? .
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
where is the wiki plugin
« Reply #7 on: April 10, 2010, 12:02:49 pm »
hi darcy i replaced it with yours but when i said "lookup" george washington all it did was hal said : I will lookup 'george Washington' in Wikipedia. and didn't do anything else .
shouldn't it say what it found ????[B)]
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
where is the wiki plugin
« Reply #8 on: April 10, 2010, 12:04:56 pm »
also darcy this is the uhp file used .

Rem Type=Plugin
Rem Name=Wikipedia lookup
Rem Author=Darcy Anne Edwards (DAE) 10/27/2008
Rem wikipedia(Lookup) command
'
Rem Host=Assistant
'
rem
'
'This sub setups the plug-ins option panel in Hal's options dialog
'
Sub OptionsPanel()
    lblPlugin(0).Caption = "For Wikipedia use 'lookup'."
    lblPlugin(0).Move 120, 120, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

    Rem PLUGIN: PLUGINAREA1

    If InStr(1, LCase(UserSentence), "lookup ", 1) > 0  Then
       SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "_"))
    SearchKeyWords = Replace(SearchKeywords, "lookup_", "")
    SearchEngine = "http://en.wikipedia.org/wiki/"
       HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
       GetResponse = GetResponse & "I will lookup '" & SearchKeywords & "' in Wikipedia. "
    End If






is this the right complete one ?? or is their an updated version as mine doesn't seem to work right .
 

catseye

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
where is the wiki plugin
« Reply #9 on: April 10, 2010, 12:07:16 pm »
that is bull hal dose learn from the autowiki
 

DarcyEdwards

  • Full Member
  • ***
  • Posts: 196
    • View Profile
where is the wiki plugin
« Reply #10 on: April 10, 2010, 12:36:17 pm »
Lightspeed,

Hal should have brought up Wikipedia with an article about George Washington in a browser window.  Note Hal doesn't learn about the Wikipedia article it is just a shortcut to bring up Wikipedia.
Hugs

-Darcy

MrsEdwards01@aol.com

DarcyEdwards

  • Full Member
  • ***
  • Posts: 196
    • View Profile
where is the wiki plugin
« Reply #11 on: April 10, 2010, 01:02:24 pm »
I run Windows 7/x64 bit.  Any 64 bit version of windows will have trouble running OTCE's version (Auto Knowledge.uhp) because the paths for the files do not exist:

these lines must be changed:

If XDir = "" Then XDir = "C:Program FilesabawareUltra Hal Assistant 6\"
   MyFile = "C:Program FilesabawareUltra Hal Assistant 6AutoText.brn"
   If File_Exists = "" Then File_Exists = False
   If FileSys.FileExists(MyFile) = True Then File_Exists = True


changed  to:

If XDir = "" Then XDir = "C:Program Files (x86)abawareUltra Hal Assistant 6\"
   MyFile = "C:Program Files (x86)abawareUltra Hal Assistant 6AutoText.brn"
   If File_Exists = "" Then File_Exists = False
   If FileSys.FileExists(MyFile) = True Then File_Exists = True

this is because the Zabaware software is loaded into the (x86) directory of program files, all programs that have hard coded file references must be changed.
Hugs

-Darcy

MrsEdwards01@aol.com

DarcyEdwards

  • Full Member
  • ***
  • Posts: 196
    • View Profile
where is the wiki plugin
« Reply #12 on: April 10, 2010, 01:23:22 pm »
catseye,

Sorry the size/date of Hal's datadase file has not changed after I told it to "PLEASE STUDY ABOUT Bill Clinton" but the autotext.brn file had a lot of text about bill clinton.
Hugs

-Darcy

MrsEdwards01@aol.com

catseye

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
where is the wiki plugin
« Reply #13 on: April 10, 2010, 01:38:05 pm »
then why did hal reply with a full paragraph from wikipedia
 

DarcyEdwards

  • Full Member
  • ***
  • Posts: 196
    • View Profile
where is the wiki plugin
« Reply #14 on: April 10, 2010, 01:55:02 pm »
catseye,

I have not been able to get Hal to learn this way, Can you show me what you typed to hal to look up in Wikipedia.  Then type what you did to retrive the infromation from hal.  Maybe I am doing something wrong.

Thank you
Hugs

-Darcy

MrsEdwards01@aol.com