使用C / C自动化的Internet Explorer ++ [英] Automating Internet Explorer using C/C++

查看:229
本文介绍了使用C / C自动化的Internet Explorer ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个小工具,可以使用C ++(无MFC)自动化Internet Explorer的
其中一些我想要自动化的行动是: - 结果
1.打开一个URL结果
2.点击浏览器实例中的超级链接结果
3.设置文本框的值结果
4.检查复选框,下拉菜单等结果。

I want to write a small utility which can automate internet explorer using C++ (No MFC). Some of the actions which i want to automate are :-
1. Opening a url
2. Clicking on a hyperlink in the browser instance
3. Setting the value of text boxes
4. Checking checkboxes, drop down menus etc.

我是一个绝对的初学者,有 COM 没有经验,但是我目前在学习的过程中。
任何人都可以指导我,好像暗示的资源和什么,我需要做一个自动化轮廓breif。
我真的会AP preciate它。

I am an absolute beginner, and have no experience with COM, however i am currently in the process of learning. Can anyone guide me, like suggesting the resources and a breif outline of what i need to do to automate. I will really appreciate it.

谢谢,
阿希什。

Thanks, Ashish.

推荐答案

我强烈建议微软的Visual C ++编译器COM支持。

I strongly recommend the Microsoft Visual C++ compiler COM support.

一般来说是这样的:

#import "c:\path\to\typelib.tlb"

#import "c:\path\to\library.dll"

#import "c:\path\to\program.exe"

这则使得它非常容易使用Internet Explorer或C ++任何其他COM对象。

This then makes it very easy to use Internet Explorer or any other COM object from C++.

在这里看到的文档:

  • http://msdn.microsoft.com/en-us/library/h31ekh7e.aspx

这篇关于使用C / C自动化的Internet Explorer ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆