从 Internet Explorer 8 中的 ActiveX 控件提取数据
我对必须手动收集 Internet Explorer 8 中运行的 ActiveX 对象中包含的数据慢慢感到抓狂。它本质上是一个包含一些关键客户详细信息等的票证系统。我必须复制和粘贴这些数据,这比正常情况要多得多。
我应该从哪里开始寻找能够让我获取所需数据并以编程方式导航 ActiveX 系统的解决方案?
理想情况下,我会考虑用 Java 或 C# 编写一些东西,但我愿意接受任何建议!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除非您感兴趣的 ActiveX 通过公共接口公开信息(在这种情况下您可以在页面上注入 JavaScript 来读取数据),否则您将不得不使用某种形式的屏幕抓取。如果控件有常规输入控件,那么应该不会太难,但如果直接渲染所有内容,您可能需要 OCR 图像...
注入脚本:
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: