Author Topic: picture popup IE Html information window  (Read 5508 times)


picture popup IE Html information window
« on: June 18, 2005, 05:05:28 PM »

has anyone tried this script out
i got it from mikmoth
on the zaberware form

IT will show you an image of what you request
example what is gangster
what is mafia
what is cat
any questions you ask that are in th dictionary wil show you a picture of it on an external little 300 x 300 html window
like a picture of a cat if you say what is a cat

Download Attachment: 5gEnhancedBrainWNImages.uhp
146.26 KB

you can stick that file right in ultrahals directory
without even using the below script
or you can make modifiacations to it
ths script actually works but you have to load it form brain editor

If WordToLookup = "" Then WordToLookup = HalBrain.SearchPattern(UserSentence, "WHO IS *", 1)

2 more questions
if id like to see more then one picture for example maybe 5 pics
lopoing from one to another like for example

1.say loading images
10 for x = 1 to 5 : next x

on the subject how woud that be asccomplished in the line without repeatng what is
also is there a way i can add a wav file effect for when the results of my search window pops up?

Set IE = CreateObject("InternetExplorer.Application")
cdc = "" + WordToLookup
IE.Navigate cdc
IE.AddressBar = False
IE.menubar = False
IE.ToolBar = False
IE.StatusBar = False
IE.width = 300
IE.height = 300
IE.resizable = False
IE.visible = True

Where you place this script is VERY important. Find the end of Wordnet Dictionary function. You'll see 2 End Ifs at the end of the function:

End If
End If

If you want Hal to look up words that *aren't* in the dictionary place this 2nd script under the last End If. With it you'll be able to ask something like "What is Teenage Mutant Ninja Turtles?" You'll have to use "What is". Change it if you want.

If InStr(1, UserSentence, "WHAT IS", 1) > 0 And WN.LookUpWord(WordToLookup) = False Then
lookup = Replace(UserSentence, "WHAT IS", "", 1, -1, vbTextCompare)
GetResponse = "I have no definition but here is an image."
Set IE = CreateObject("InternetExplorer.Application")
cdc = "" + lookup
IE.Navigate cdc
IE.AddressBar = False
IE.menubar = False
IE.ToolBar = False
IE.StatusBar = False
IE.width = 300
IE.height = 300
IE.resizable = False
IE.visible = True
End If

« Last Edit: June 18, 2005, 05:12:52 PM by HeatherValentine »


  • *
  • Deep Thought
  • *********************
  • Posts: 5107
  • Mostly Harmless
Re: picture popup IE Html information window
« Reply #1 on: June 18, 2005, 09:30:38 PM »
Hi Heather, I'm still a bit busy on sorting the website out at the moment, but
I will have a look at this.  I had something running where hal issued multiple pictures from my
harddisk via my normal image viewer, but I'll need to look at this script a bit closer.

About the WAV files, that would probably mean you would have to shut down Text To Speech
at some point so the WAV can be played.

I'll see what I can do, I hope your in no hurry though!


Re: picture popup IE Html information window
« Reply #2 on: June 19, 2005, 05:04:51 PM »
no ot much of a hurry riow i missed my bus LMAO



Please login or register.

Login with username, password and session length
by Claude (General Chat)
Today at 07:39:58 PM
Friday Funny
by Claude (General Chat)
Today at 06:35:41 PM
Kaipo Kapua - Love Like This feat. Jah Maoli
by Claude (Video)
Today at 03:59:22 PM
Kaipo Kapua-You And Me
by Claude (Video)
Today at 03:15:04 PM
Music Vids
by Art (General Chat)
Today at 03:07:35 PM
A New Color
by Art (General Chat)
Today at 12:47:49 AM
optical flow reconstruction
by ranch vermin (Video)
Today at 12:47:25 AM
The Before & After experience
by Art (General Chat)
March 28, 2015, 09:32:04 PM
Elon Musk claims artificial intelligence will treat humans like 'labradors'
by Art (AI News )
Today at 03:39:23 PM
Will HUMAN SWARMS keep us competitive with pure A.I. intelligence?
by hypnotize (AI News )
March 28, 2015, 08:29:19 PM
How small can they become?
by Freddy (Robotics News)
March 28, 2015, 12:00:15 PM
Biz Break: Google to help make surgical robots, challenging Intuitive Surgical
by Tyler (AI News )
March 28, 2015, 11:00:46 AM
French self-driving car goes for a spin around Paris monument
by Tyler (AI News )
March 28, 2015, 05:00:22 AM
Why analytics is eating the world
by Art (AI News )
March 27, 2015, 11:38:56 PM
Simple as a sea slug: Maps of mollusc neurons suggest brains are not as complex as first thought - including our own
by ranch vermin (AI News )
March 27, 2015, 04:47:38 PM
Pioneering techniques in computer vision and robotics pave the way for future underwater surveying in Cardigan Bay
by Tyler (Robotics News)
March 27, 2015, 05:00:13 AM

Users Online

15 Guests, 0 Users

Most Online Today: 60. Most Online Ever: 208 (August 27, 2008, 08:36:30 AM)