picture popup IE Html information window

  • 2 Replies
  • 9918 Views
*

HeatherValentine

  • Guest
picture popup IE Html information window
« on: June 18, 2005, 06:05:28 pm »
hi

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




http://www.zabaware.com/forum/uploaded/mikmoth/200522032927_5gEnhancedBrainWNImages.uhp


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
goto10

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







'*** WORDNET IMAGES ***
Set IE = CreateObject("InternetExplorer.Application")
cdc = "http://www.glice3d.com/cgi-bin/popup.pl?term=" + 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
'*** END WORDNET IMAGES ***

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:

*PLACE SCRIPT HERE*
End If
End If
*PLACE 2ND SCRIPT HERE*

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.

'*** NON-WORDNET IMAGES ***
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 = "http://www.glice3d.com/cgi-bin/popup.pl?term=" + 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
'*** END NON-WORDNET IMAGES ***

« Last Edit: June 18, 2005, 06:12:52 pm by HeatherValentine »

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: picture popup IE Html information window
« Reply #1 on: June 18, 2005, 10: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!

*

HeatherValentine

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

 


Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Will LLMs ever learn what is ... is?
by frankinstien (Future of AI)
November 03, 2024, 08:11:00 pm
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
Attempting Hydraulics
by MagnusWootton (Home Made Robots)
August 19, 2024, 04:03:23 am
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

323 Guests, 0 Users

Most Online Today: 336. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles