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


picture popup IE Html information window
« on: June 18, 2005, 04:53: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:00:52 PM by HeatherValentine »


  • *
  • Colossus
  • **********************
  • Posts: 5698
  • Mostly Harmless
Re: picture popup IE Html information window
« Reply #1 on: June 18, 2005, 09:18: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, 04:52: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
A Blast from the past...
by Art (Gaming)
Today at 11:53:45 AM
Dialogue French
by Claude (Video)
September 25, 2016, 09:03:20 PM
Congratulations to SquareBear
by (General Chat)
September 24, 2016, 04:47:09 PM
speak3D_chung_dll a dll for display face3D talking avatars in openGL
by (General Avatar Talk)
September 24, 2016, 04:19:44 PM
Hold Me Tight
by Claude (Video)
September 23, 2016, 10:48:19 PM
Explicit NL notation
by Zero (AI Programming)
September 23, 2016, 11:15:06 AM
Chatbots in the news...
by Art (General Chatbots and Software)
September 23, 2016, 01:17:29 AM
The Ultimate Master Diagram Of All Of Human Intelligence Is Here.
by LOCKSUIT (General Chat)
September 22, 2016, 10:07:38 PM
Michigan’s automated driving bills
by Tyler (Robotics News)
Today at 04:48:06 PM
Robots can successfully imitate human motions in the operating room
by Tyler (Robotics News)
Today at 10:52:45 AM
Victor Scheinman, Assembly Line Robot Inventor, Dies at 73
by Tyler (AI News )
September 25, 2016, 04:48:19 PM
Automated screening for childhood communication disorders
by Tyler (AI News )
September 24, 2016, 04:48:05 AM
Video gamers outdo scientists in contest to discover protein's shape
by Tyler (AI News )
September 23, 2016, 10:48:14 PM
What’s new in robotics this week: British Standards Institute releases guidelines for ethical robot design
by Tyler (Robotics News)
September 23, 2016, 10:48:13 PM
A practical look at latency in robotics: The importance of metrics and operating systems
by Tyler (Robotics News)
September 23, 2016, 04:48:04 PM
Google Allo released, letting people chat while being watched by its robots
by Tyler (AI News )
September 23, 2016, 10:48:41 AM

Users Online

30 Guests, 0 Users

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