Internet Browser Handling
Hi, basically this is my goal:
Writing a program that can find certain elements and objects in a browser (either Firefox or Internet Explorer, the latter being preferred) such as links, and images, etc. Basically I need to be able to pin-point the exact location of the certain objects I want to gather information on, and if they're links, the underlying link.
So basically, I need a way of dynamically searching for pictures and links in the browser window. I could parse the HTML but that doesn't reveal the location of the object in the browser. The only thing I could really think of was maybe injecting a DLL into the browsers process and hooking all the calls it makes (or something to that effect) and possibly process the data it sends to the functions that draw the images into the browser window.
Another possibility I thought of was making my own little browser for this specific application, and it just strips the images and links and places them in my custom browser window so that it's the only data displayed.
ANOTHER possibility I thought of was search for the pixels, but that doesn't seem like a very elegant approach due to the fact that the browser may be customised, the pixels may be out of sight, the other pixels on the site may interfere, etc.
I'm looking forward to your ideas and what you think the best approach would be! If possible please give a few examples or maybe some functions to check out as well.