Search code examples
c#javainternet-exploreractivexactivexobject

Pulling data from an ActiveX control in Internet Explorer 8


I'm being slowly driven mad at work having to manually gather data contained within an ActiveX object running in Internet Explorer 8. It's essentially a ticket system containing some key customer details etc. which I must copy and paste a lot more than is healthy.

Where would I start looking for a solution that will allow me to grab the data I want and navigate the ActiveX system programmatically?

Ideally I'd be thinking of writing something in Java or C# but I'm open to any suggestions!


Solution

  • Unless the ActiveX you are interested in exposes information through public interface (in which case you can injected JavaScript on page to read data) you'll have to use some form of screen scraping. If the control has regular input controls it should not be too hard, but if everything rendered directly you may need OCR the images...

    Injecting script: