Get Pos etc from Image inside Browser

i want to use the WebBrowser ActiveX OR by hooking some messages etc to IE5,
anyhow i need to check WebPage(s) for specific image "filenames" if page has this image i want to LOG X,Y that i press on this, Image can be alone on page or on a normal page with more content.
LVL 2
brainwareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrDelphiCommented:
Hmmmm... sounds to me like what you want to look into are IMAGEMAPS. This is HTML stuff and not my area of expertise. You can probably find some good references at About.com or Deja.com. Good luck!!  
0
brainwareAuthor Commented:
No No..

Example of one if the things i want to do :
My own Browser made using the ActiveX where i would check if a Image is named like sex.jpg then i could want X,Y,Width,Height if this Image inside the ActiveX, so i can draw ontop of it if i wanted to censur it, or even COPY this section "dc" and analyse the image.
0
DrDelphiCommented:
aha.... that is different. I don't know frankly how you would be able to get the coordinates (x,y, height,width) of the picture, since it could be stretched in the browser. You might want to start by reading the HTML stream, looking for <IMG src=XXXX> I am fairly certain that there are size tags as well, but I think that they can be relative to a frame, for eaxample rather than the browser's window. Since you own the Browser, I would think that if you spot a filename in the IMG tag that you feel may be offensive, you could modify the HTML to look at another, more benign file on the local disk. Again, never tried it myself, but it seems reasonable.

0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

brainwareAuthor Commented:
else is there any sources around for a Simple HTML Viewer wo Frames etc.
i know the Commercial Once and free once WO.Source.
0
brainwareAuthor Commented:
But i guess i need to use ActiveX of IE5 anyhow.. :(
else what about Java Applets, JS etc..
i would have to write an entire Browser :(
0
intheCommented:
you can get the source of the twebbrowser with

procedure TForm1.Button1Click(Sender: TObject);
var
Doc :  IHtmlDocument2 ;
begin
Doc := Webbrowser1.Document as IHtmlDocument2;
Memo1.Clear;
Memo1.lines.add(trim(doc.body.innerText));
0
men xinCEOCommented:
listening..
0
brainwareAuthor Commented:
inthe ill check that later to night..

would it even be possiple to do like
i Get the Downloaded Content and modify it before WebBrowser parse and display ?
0
intheCommented:
well i presume you know about :
http://www.euromind.com/iedelphi/
the embeddedWB component(replacement for twebbrowser) has many more functions than twebbrowser and one is a stream function(not sure if before page load or after page load).
there are other tools there that could help too.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brainwareAuthor Commented:
i guess i accept all those usefull info.. now i just gotta get time to finnish that prj.  
and i didnt know about www.euromind.com/iedelphi .

Regards
Michael
0
intheCommented:
ok cheers :-)

0
intheCommented:
oh and about the writing serials thing i have a look tommorrow but i think what i have works on 9* only ,i'd need to find it first then to some checking.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.