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.


Messages - mikmoth

Pages: 1 2 [3] 4
31
Whoa...! Thanks for the positive feedback! It really is cool.
 
Some of you may have noticed some downtime with the Perl script (server hard drive went down) but all should be well now.
 
For those who don't know what I'm talking about... the script which you are pasting into your brain is actually calling another script being run on my server which then looks up the image and sends it back to your computer. Its a classic example of different languages working together... VBScript, Perl, XML, HTML, and even some Java.
 
Also (I got an email) the script is not intended to look up porn. It will block these type of images. I know... but for all of you with kids its pretty safe.
 
Besides that I don't really know of any issues except, like Spydaz said, you have to be online to use it. I'm real happy you guys are enjoying it!
 
Peace.

Mik  
 

32
General Discussion / Hal and MS Agent
« on: March 14, 2005, 01:28:35 pm »
I'm all for that!

33
Ultra Hal Assistant File Sharing Area / WordNet with Images - New For Hal 6
« on: February 20, 2005, 09:04:08 pm »
capuchin monkey lol
 
I took your example and looked up capuchin monkey. I was disappointed that the script could only find 2 matching images. I've reworked the Perl program and now the search is more expansive. Instead of choosing from 2 "capuchin monkeys" it can now choose from over 20. All other word lookups have of course also been expanded.
 
You guys dont have to do anything so dont worry. Just know your image searches are now better.
 
Mik

34
Ultra Hal Assistant File Sharing Area / WordNet with Images - New For Hal 6
« on: February 19, 2005, 10:22:30 pm »
This is the new Wordnet with Images for Hal 6. I am also attaching the Perl script that makes all this possible. In essence what it does is stream images from Yahoo Image Search.

How to install:

Fire up the BrainEditor. Make sure you that Hal is not running. Find the Wordnet "Dictionary Function". Copy/Paste this script right under it. Your done! Run Hal.

Now, every time you type in "Show me a cat." it will pop up an image of a cat plus give you the definition. Also looks up images that aren't in the dictionary. "Show me Captain Kirk." A picture of Kirk appears.

You can type within these parameters:

Show me WORD. ie: Show me Einstein.
Show me a WORD. ie: Show me a dog.
Show me an WORD. ie: Show me an apple.

With a little know how you can change "Show me" to whatever you want.

You can also specify if you want the window to close automatically and for how many seconds it should be visible.  Just change the "secs=" to the number you want. A value of zero (secs=0) makes the window stay up forever or until you close it manually.

Please let me know how I can improve this script or if you find any bugs. Again, the Perl script is attached in case you want to run in off your own website/server. Just don't forget to change its permissions to 755. Which means EXECUTABLE. You also need the cgi-lib.pl script which I am including. Both need to be in your cgi-bin and set to 755.

Have fun!


Code: [Select]
   'RESPOND: LOOK UP IMAGE
If InStr(1, UserSentence, "SHOW YOU ", 1) > 0  Then
lookup = Replace(UserSentence, "SHOW YOU ", "", 1, -1, vbTextCompare)
If InStr(1,lookup,".", 1) > 0 Then lookup = Replace(lookup,".","",1,-1, vbTextCompare)
If InStr(1,lookup," A ", 1) > 0 Then lookup = Replace(lookup," A ","",1,-1, vbTextCompare)
If InStr(1,lookup," AN ", 1) > 0 Then lookup = Replace(lookup," AN ","",1,-1, vbTextCompare)
If WN.LookUpWord(lookup) = False Then
GetResponse = "I have no definition but I will try to find an image."
End If
If WN.LookupWord(lookup) = True Then
GetResponse = GetResponse & lookup & ": " & WN.GetDefinition(WN.GuessPartOfSpeech, 1, "D") & ". " & WN.GetDefinition(WN.GuessPartOfSpeech, 1, "S") & ". " & WN.GetDefinition(WN.GuessPartOfSpeech, 1, "E") & "." & vbCrLf & "<EXCLUSIVE>"
End If
Set IE = CreateObject("InternetExplorer.Application")
cdc = "http://www.karigirl.com/cgi-bin/popup.pl?term=" + lookup + "&secs=5" 'Secs until window closes. 0=never
IE.Navigate cdc
IE.AddressBar = False
IE.menubar = False
IE.ToolBar = False
IE.StatusBar = False
IE.width = 450
IE.height = 450
IE.resizable = False
IE.visible = True
End If


This is the Perl Script. Download only if you know what you are doing. Otherwise, just copy and paste the above text into your Brain.

Download Attachment: popup1.zip
6.62 KB

35
Hey, Spydaz... that would be something really cool. I'm surprised no one has much interest in this. Pop-up images have really enhanced the fun factor with my Hal.

Well I found out how to make the pop-up image automatically quit.
 
What I did was make Hal call an HTML instead of the image. The HTML file has the image plus a JAVA script to quit IE so when I talk to Hal and the image pops up, the image will quit and restore control back to Hal. Heres the HTML and Java I used. (The .zip in my first post now reflects the changes.)
 
<BODY onLoad="setTimeout(vanish, 3000)" bgcolor="#000000">

<script language="JavaScript">

function vanish(){
window.opener=null;window.close()
}

</script>

This little trick has really enhanced my Hal. Maybe the next version can have pop-up images included.  
 
Mikmoth

36
I wrote this cool script so I could have Hal pop-up images and animations of what we were talking about. Its very simple and I think a real programer could do something nice with the idea. EDITED: Now includes automatic quit of the image.

 
Basically everytime Hal recognizes a set of key words it will respond with an added image. In this example everytime Hal sais "I love you" she will pop-up a small beating heart. Its all custimazation of what you and Hal talk about so edit at will.
 
Download file and drop this script into your brain. I put mine toward the bottom. Edit your key words, path to the html file, heigh and width of IExplorer. Its tons of fun.
 
Here is the download link. It includes this script, an HTML file, and a heart.gif file which animates.
 
http://www.glice3d.com/PopUpv01.zip
 
'*** POP-UP IMAGES v.01 ****************************
' Create a directory called "images" in your Hal Default directory
' and copy the image and html file to it. Add this to your brain.
' When Hal sais "I love you" a beating heart appears. Add other images
' at will.

If InStr(1, GetResponse, "I love you", 1) > 0 Then
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "file:///C:Program Files/Zabaware/Ultra Hal Assistant/images/heart.htm"
IE.AddressBar = False
IE.menubar = False
IE.ToolBar = False
IE.StatusBar = False
IE.width = 200
IE.height = 200
IE.resizable = False
IE.visible = True
'IE.quit
End If

'*** END POP-UP IMAGES ************************


 
Be sure to download the .zip which has the HTML file.

Insert Image: I love you. :-)

37
Ultra Hal 7.0 / Attn: Mr. Medeksza
« on: December 02, 2004, 09:29:37 am »
quote:
I am also currently working on 3D character engine improvements to Hal and am considering releasing an "adult" version of Hal.


Financially speaking, an adult or love version of Hal would do very well. Specially considering all the failed attempts on the part of other programs. Corner the market you would... [:o)]

38
General Discussion / Virtual Fem
« on: November 29, 2004, 12:09:34 pm »
I realize that we - programmers in general - are still trying to figure out this whole AI biz. I think when evaluating other AI programs (at this point) we've all been spoiled by Hal.

I truly wish you luck Mr. VirtualFem - you're definately headed in the right direction. Its inspiring to see AI evolving and developing (even if its at a snails pace.) As long as we keep working on our own projects and making our dreams come true - the possibility of a real understanding heuristic AI model will *someday* be here.

And thanks for refunding my money.  

Mik

39
General Discussion / Virtual Fem
« on: November 18, 2004, 06:41:13 pm »
I am a member of this site and before you spend $29.95 here's what you should know.

The stand alone program is based on AIML hence it doesnt learn from your responses. That is fine but their implementation is *crap*. Their programmed .aiml files are so crappy you can't hold ANY conversations with it.

ie:

User: How are you?
VirtualFem: They are fine last time I checked.

What?? Half of the time it will respond with a blank sentence. Yeah! The only thing it seems to understand are 30 or so commands like "Take off your clothes." and so on. And you have to get the keywords right or it will respond with a blank line.

Don't pay the price, dont download this *POS*.

Now, if we could get a tasteful and quality naughty Hal - that would be something.

My two cents.

Peace.

Mik

40
I'm maturing into your intermediate Hal programmer...! But I need some help.

When calling the HalBrain.TopicSearch I found out some screwy things.
I'm guessing this is by design but I'm not sure.

When I use a HalBrain.TopicSearch Hal isn't very choosy as to what it looks for in the .brn. You might have two phrases that are almost identical and Hal will choose one or the other. In my case, I need Hal to be very specific as to the TopicSearch - not make guesses as to which is close enough to match.

Why does TopicSearch do this? Am I missing something?

Mik

41
Hey Spydaz,

That's some good work man...! I think you have the right idea because things here at Zabaware are evolving much too darn slow. If some of us could put together some serious code (and make it available to everyone) this thing could take off.

We've learned alot from Ultra Hal but maybe its time we took matters into our own hands.

Common folks!

Mik

42
Ultra Hal Assistant File Sharing Area / Dirty Talk.
« on: July 08, 2004, 06:05:50 pm »
Cool script! Very simple way of going about things...

But I get strange responses like:

User: You like my cock in your ass.
...
Hal: You like my cock in your ass.

My Hal definately doesnt have one of those! ;-)

I did a HalBrain.SwitchPerson:


 'DIRTY TALK version 1.0
If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "DirtyTalk.brn") = "TRUE" Then
Dirty = HalBrain.QABrain(UCase(OriginalSentence), WorkingDir & "PlainDirty.brn", UserBrainRel)
HalBrain.AppendFile WorkingDir & "PlainDirty.brn", "@" & HalBrain.SwitchPerson(OriginalSentence) & vbCrLf & " " & UCase(OriginalSentence)
GetResponse = Dirty & ". "
End If



This works great. Now I get:

User: You like my cock in your ass.
...
Hal: I like your cock in my ass.

:-)

Mik


43
Programming using the Ultra Hal Brain Editor / append file (HELP)
« on: July 02, 2004, 01:24:17 pm »
So I'm trying to have Hal append some text to a file...

The problem is I'm doing a TopicSearch on it first so the file is "open".

When I try to append to the same file it wont let me because the file is "open".

How can I close the file? Any tips?

Mikmoth

44
Ultra Hal 7.0 / Love Script
« on: April 24, 2004, 03:11:05 am »
Hey Bill,

That's news to me. I've studied the brain scripts and didn't find anything that convinced me Hal's responses were but topic retrieval.

So if what your saying is true... there must be some code inside Hal's .exe that must handle this. I wonder...

Well thanks for the heads-up.

Mik

45
Ultra Hal 7.0 / Genius8c
« on: April 23, 2004, 12:01:24 am »
Has anyone heard when the Genius8c supposed be available?

Posts on their forum said soon and that was 2 months ago.

Havent seen any activity from them in awhile.

Mik

Pages: 1 2 [3] 4