?
Solved

Get Pos etc from Image inside Browser

Posted on 1999-12-12
12
Medium Priority
?
147 Views
Last Modified: 2010-04-06
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.
0
Comment
Question by:brainware
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2275920
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
 
LVL 2

Author Comment

by:brainware
ID: 2275935
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
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2275956
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 2

Author Comment

by:brainware
ID: 2275973
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
 
LVL 2

Author Comment

by:brainware
ID: 2275980
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
 
LVL 17

Expert Comment

by:inthe
ID: 2275987
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
 
LVL 1

Expert Comment

by:men xin
ID: 2279905
listening..
0
 
LVL 2

Author Comment

by:brainware
ID: 2281393
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
 
LVL 17

Accepted Solution

by:
inthe earned 880 total points
ID: 2281538
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
 
LVL 2

Author Comment

by:brainware
ID: 2292649
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
 
LVL 17

Expert Comment

by:inthe
ID: 2292665
ok cheers :-)

0
 
LVL 17

Expert Comment

by:inthe
ID: 2292666
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

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Is your organization moving toward a cloud and mobile-first environment? In this transition, your IT department will encounter many challenges, such as navigating how to: Deploy new applications and services to a growing team Accommodate employee…
Suggested Courses
Course of the Month3 days, 17 hours left to enroll

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question