Author Topic: picture popup IE Html information window  (Read 5866 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: 5411
  • 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
Is it just me or ??
by DemonRaven (General Chat)
Today at 01:08:45 AM
by Data (General Chat)
November 25, 2015, 09:36:43 PM
Friday Funny
by Claude (General Chat)
November 25, 2015, 08:00:26 PM
metalanguage: a language for describing other languages
by ivan.moony (AI Programming)
November 25, 2015, 05:42:45 PM
Anyone want to buy me a christmas present
by DemonRaven (General Robotics Talk)
November 25, 2015, 12:09:34 PM
Can AI be discovered from the Bible?
by DemonRaven (General AI Discussion)
November 25, 2015, 02:31:19 AM
Twilight Zone moment
by Art (General Chat)
November 25, 2015, 01:01:15 AM
What's everyone up to ?
by DemonRaven (General Chat)
November 25, 2015, 12:43:57 AM
China robot event pulls Beijing crowds
by Tyler (AI News )
Today at 05:00:06 AM
The Year of CoCoRo Video #47/52: Underwater robots swarm at CEBIT consumer electronics show
by Tyler (Robotics News)
Today at 05:00:05 AM
Car Seat Senses Your Road Rage, Offers a Massage
by Tyler (AI News )
November 25, 2015, 11:00:34 PM
The Drone Center’s Weekly Roundup: 11/23/15
by Tyler (Robotics News)
November 25, 2015, 11:00:33 PM
Why bartenders have to ignore some signals
by Tyler (AI News )
November 25, 2015, 05:00:33 PM
No, a Google car was not ticketed for going too slow (and other robocar stories)
by Tyler (Robotics News)
November 25, 2015, 05:00:33 PM
Elbot – The Cheeky Chatbot That Never Gives a Straight Answer, Goes Mobile
by DemonRaven (AI News )
November 24, 2015, 09:22:00 AM
‘Rise of the Robots’ receives Business Book of the Year award
by Tyler (Robotics News)
November 24, 2015, 05:01:11 AM

Users Online

22 Guests, 0 Users

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