(转自MSDN)InternetExplorer.Application的用法及属性解释

VBS InternetExplorer.Application的属性和方法介绍 V这篇文章主要是介绍vBS InternetExplorer.Application 属性和方法,需要的朋友可以参考一下 立即下载

转自:http://msdn.microsoft.com/en-us/library/aa752084

目的留个备份,方便我以后去MSDN上找用法。

InternetExplorer Object

42 out of 82 rated this helpful Rate this topic

Controls an instance of Windows Internet Explorer through automation.

Members Table

The following table lists the members exposed by the InternetExplorer object.

Events
Event Description
BeforeNavigate Fires before navigation occurs in the given object (on either a window or frameset element).
BeforeNavigate2 Fires before navigation occurs in the given object (on either a window element or a frameset element).
CommandStateChange Fires when the enabled state of a command changes.
DocumentComplete Fires when a document is completely loaded and initialized.
DownloadBegin Fires when a navigation operation begins.
DownloadComplete Fires when a navigation operation finishes, is halted, or fails.
FileDownload Fires to indicate that a file download is about to occur. If a file download dialog box can be displayed, this event fires prior to the appearance of the dialog box.
NavigateComplete Fires after a navigation to a link is completed on either a window element or a frameSet element.
NavigateComplete2 Fires after a navigation to a link is completed on a window element or a frameSet element.
NavigateError Fires when an error occurs during navigation.
NewProcess Creates a new process to handle the navigation.
NewWindow Fires when a new window is to be created.
NewWindow2 Fires when a new window is to be created.
NewWindow3 Raised when a new window is to be created. Extends NewWindow2 with additional information about the new window.
OnFullScreen Fires when the FullScreen property is changed.
OnMenuBar Fires when the MenuBar property is changed.
OnQuit Fires before the Internet Explorer application quits.
OnStatusBar Fires when the StatusBar property is changed.
OnTheaterMode Fires when the TheaterMode property is changed.
OnToolBar Fires when the ToolBar property is changed.
OnVisible Fires when the Visible property of the object is changed.
PrintTemplateInstantiation Fires when a print template is instantiated.
PrintTemplateTeardown Fires when a print template is destroyed.
PrivacyImpactedStateChange Fired when an event occurs that impacts privacy, or when a user navigates away from a URL that has impacted privacy.
ProgressChange Fires when the progress of a download operation is updated on the object.
PropertyChange Fires when the PutProperty method of the object changes the value of a property.
RedirectXDomainBlocked Fired when a cross-domain redirect request is blocked.
SetPhishingFilterStatus Fires to indicate the progress and status of Microsoft Phishing Filter analysis of the current webpage.
SetSecureLockIcon Fires when there is a change in encryption level.
StatusTextChange Fires when the status bar text of the object has changed.
ThirdPartyUrlBlocked Fired when a third-party URL is blocked.
TitleChange Fires when the title of a document in the object becomes available or changes.
UpdatePageStatus Not implemented.
WindowActivate Not implemented.
WindowMove Not implemented.
WindowResize Not implemented.
WindowStateChanged Fires when the visibility state of a content window, such as the browser window or a tab, changes.
Methods
Method Description
ClientToWindow Computes the full size of the browser window when given the specified width and height of the content area.
ExecWB Executes a command and returns the status of the command execution using the IOleCommandTarget interface.
GetProperty Gets the value associated with a user-defined property name.
GoBack Navigates backward one item in the history list.
GoForward Navigates forward one item in the history list.
GoHome Navigates to the current home or start page.
GoSearch Navigates to the current search page.
Navigate Navigates to a resource identified by a URL or to a file identified by a full path.
Navigate2 Navigates the browser to a location that might not be expressed as a URL, such as a pointer to an item identifier list (PIDL) for an entity in the Windows Shell namespace.
PutProperty Associates a user-defined name/value pair with the object.
QueryStatusWB Queries the object for the status of commands using the IOleCommandTarget interface.
Quit Closes the object.
Refresh Reloads the file that is currently displayed in the object.
Refresh2 Reloads the file that is currently displayed with the specified refresh level.
ShowBrowserBar Shows or hides a specified browser bar.
Stop Cancels a pending navigation or download, and stops dynamic page elements, such as background sounds and animations.
Properties
Property Description
AddressBar Sets or gets a value that indicates whether the address bar of the object is visible or hidden.
Application Gets the automation object for the application that is hosting the WebBrowser Control.
Busy Gets a value that indicates whether the object is engaged in a navigation or downloading operation.
Container Gets an object reference to a container.
Document Gets the automation object of the active document, if any.
FullName Retrieves the fully qualified path of the Internet Explorer executable.
FullScreen Sets or gets a value that indicates whether Internet Explorer is in full-screen mode or normal window mode.
Height Sets or gets the height of the object.
HWND Gets the handle of the Internet Explorer main window.
Left Sets or gets the coordinate of the left edge of the object.
LocationName Retrieves the path or title of the resource that is currently displayed.
LocationURL Gets the URL of the resource that is currently displayed.
MenuBar Sets or gets a value that indicates whether the Internet Explorer menu bar is visible.
Name Retrieves the frame name or application name of the object.
Offline Sets or gets a value that indicates whether the object is operating in offline mode.
Parent Gets the parent of the object.
Path Retrieves the system folder of the Internet Explorer executable.
ReadyState Gets the ready state of the object.
RegisterAsBrowser Sets or gets a value that indicates whether the object is registered as a top-level browser window.
RegisterAsDropTarget Sets or gets a value that indicates whether the object is registered as a drop target for navigation.
Resizable Sets or gets a value that indicates whether the object can be resized.
Silent Sets or gets a value that indicates whether the object can display dialog boxes.
StatusBar Sets or gets a value that indicates whether the status bar for the object is visible.
StatusText Sets or gets the text in the status bar for the object.
TheaterMode Sets or gets whether the object is in theater mode.
ToolBar Sets or gets whether toolbars for the object are visible.
Top Sets or gets the coordinate of the top edge of the object.
TopLevelContainer Gets a value that indicates whether the object is a top-level container.
Type Gets the user type name of the contained document object.
Visible Sets or gets a value that indicates whether the object is visible or hidden.
Width Sets or gets the width of the object.

Remarks

Internet Explorer 8. On Windows Vista, to create an instance of Internet Explorer running at a medium integrity level, pass CLSID_InternetExplorerMedium (defined in exdisp.idl) to CoCreateInstance. The resulting InternetExplorerMedium object supports the same events, methods, and properties as the InternetExplorer object.

Examples

The following example uses CreateObject in Microsoft Visual Basic to launch an instance of Internet Explorer.

Dim IE As SHDocVw.InternetExplorer

Set IE = CreateObject("InternetExplorer.Application")

The following C# example launches an instance of Internet Explorer and navigates to a Web page. The code also demonstrates how to create an event handler to listen for the BeforeNavigate2 event. The project requires a reference to the Microsoft Internet Controls (SHDocVw) type library.

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class EventHandlers
    {
        public void OnBeforeNavigate2(object sender, ref object URL, 
                                      ref object Flags, ref object Target, 
                                      ref object PostData, ref object Headers, 
                                      ref bool Cancel) 
        {
            Console.WriteLine("BeforeNavigate2 fired!");
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            EventHandlers e = new EventHandlers();
            SHDocVw.InternetExplorer IE = new SHDocVw.InternetExplorer();
            object Empty = 0;
            object URL = "http://www.live.com";

            // override BeforeNavigate2 event
            IE.BeforeNavigate2 += new
                 SHDocVw.DWebBrowserEvents2_BeforeNavigate2EventHandler(
                         e.OnBeforeNavigate2);

            IE.Visible = true;
            IE.Navigate2(ref URL, ref Empty, ref Empty, ref Empty, ref Empty);

            System.Threading.Thread.Sleep(5000);

            IE.Quit();
        }
    }
} 

Object Information

CLSID CLSID_InternetExplorer
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 98, Windows CE 4.0

AFSim仿真系统中的图像处理器:从静态图像到视频流的目标识别技术解析 本文深入解析了AFSim仿真系统中WSF_IMAGE_PROCESSOR图像处理器的核心功能与技术实现。它详细阐述了该处理器如何从静态图像与视频流中完成目标检测、跟踪与识别,将原始像素数据转化为可供指挥系统使用的轨迹情报,并重点介绍了其基于约翰逊准则的目标识别进阶逻辑、关键参数配置以及脚本扩展能力,为构建高逼真度仿真应用提供了实践指导。 阅读详情

相关推荐

【笔记软件obsidian】从入门到精通

目录 一、前言 二、下载及安装 三、【选修】ios用户如何通过iCloud进行三平台同步 四、基本Markdown语法 五、【选修】插件的下载及安装方式 六、

patrick的博客 9万+

InternetExplorer.Application对象的Documen属性及简单应用

InternetExplorer.Application对象的Documen属性(转帖)  document 文挡对象 - JavaScript脚本语言描述  --------------------------------------------------------------------- 另附上微软MSDN上的资料地址 注:页面上元素name属

仒雨的专栏 2万+

STM32CubeMx搭建LWIP程序

  使用STM32CubeMx5.21,在stm32f745平台上搭建ethernet通信程序,PHY选用KSZ8081RNB。(LAN8742/DP83848使用一样) 1、系统时钟设置   RCC设置,勾选外部高速时钟源。   系统时钟配置。写入外部晶振频率、HSE提供PLCCLK、HCLK,其他参数自动生成。 2、ETH设置   勾选设置NVIC。   根据硬件设置对应GPIO引脚。   参数设置默认   根据硬件设置PHY地址,其他参数默认。 3、LWIP设置   勾选使能,通用参数设置

Gandalf94的博客 3238

InternetExplorer.Application在注册表中的位置以及修改权限

一,首先使用windows键加r键打开运行,并输入regedit点击确认后打开注册表。 二,我们在注册表中进行查找InternetExplorer.Application 三,查找后发现在这种都是数字加字母的下面有个LocalServer32在这里存储的数据是ie的地址(我的是"%ProgramFiles%\Internet Explorer\iexplore.exe",不同的电脑可能不一样)不一定能直接查到LocalServer32这个位置。后面有一点关于这个的自己的分析。查不到的话参考后面。我需要的

sonwing的博客 4106

ArcGIS小白必看:5分钟搞定面要素转点要素+自动计算经纬度坐标(附常见报错解决方案)

本文为ArcGIS新手详细解析了面要素转点要素并自动计算经纬度坐标的完整流程。核心在于正确理解和使用坐标系,并掌握ArcToolbox中的“要素转点”等工具。文章深入剖析了常见报错(如坐标系未定义、字段计算失败)的根源,提供了从基础操作到Python脚本自动化的实战解决方案,确保数据转换的准确与高效。

weixin_29284885的博客 575

【Android】条形码/二维码扫描——ZXing源码分析

正在更新中 针对3.2.1版本源码 与其他版本代码可能会有出入,但核心思想基本不变。 首先从com.google.zxing.client.android包中的目录结构分析:Book:这个文件夹中有5个类: BrowseBookListener 实现了adapter的点击事项响应,通过获取ISBN,然后跳转到Google books中查询响应的详细信息。 SearchBookContents

年轻的学徒 2453

只需一行代码,Win11也能用IE浏览器!

这意味着你可以通过脚本控制IE浏览器,比如打开网页、填写表单等。.Visible=true:这部分代码将IE浏览器的可见性设置为true,即让浏览器窗口显示出来。如果设置为false,则浏览器会在后台运行,用户看不到浏览器窗口。有一些工作上或者其他方面的需求:需要适配兼容IE浏览器去打开特定的网站,但是 IE 浏览器在 Windows 11 中已不再被默认支持,所以换个方式利用代码打开IE;这行代码的作用是创建一个Internet Explorer(IE)浏览器的实例,并将其设置为可见状态。

estrusKing的博客 3338

PX4无人机offboard开发之旅

(慢慢更)无人机OFFBOARD开发

InTereSTingHE的博客 1078

[转](autoit 学习)InternetExplorer.Application对象的Documen属性

InternetExplorer.Application对象的Documen属性(转帖) document 文挡对象 - JavaScript脚本语言描述 --------------------------------------------------------------------- 注:页面上元素name属性和JavaScript引用的名称必须一致包括大...

alwayscode 815

高效打卡系统设计:从行为心理学到实践工具

打卡系统作为现代时间管理的重要工具,其核心原理植根于行为心理学中的即时反馈机制和习惯养成理论。通过科学设计的打卡周期和可视化反馈,能有效提升个人自律性和目标达成率。在技术实现上,从纸质记录到数字化工具(如Notion、Excel自动化模板)的演进,为不同场景提供了灵活解决方案。特别在习惯追踪和进度管理领域,结合热力图生成、数据统计等技巧,打卡系统能转化为强大的自我监督工具。本文通过实践案例,详解如何构建兼顾弹性和约束力的个性化打卡方案,帮助读者突破'三天打鱼两天晒网'的常见困境。

weixin_30047059的博客 337

Cluster Computing期刊投稿实战:从格式调整到技术检查的全流程解析

本文详细解析了向Cluster Computing期刊投稿的全流程,涵盖心理准备、格式调整、参考文献处理及投稿系统操作。重点介绍了如何利用Springer LaTeX模板,特别是使用picins宏包解决作者简介排版难题,并强调了将BibTeX转换为BBL文件以避免技术审查陷阱,为研究者提供了一份实用的投稿指南。

weixin_28432777的博客 668

windows 11 如何使用 IE 浏览器

众所周知:IE 浏览器已经被微软废弃,像windows 11这种系统内置已经找不到 IE 浏览器了,这对前端工程师而言,肯定是不行的。因为项目中,经常有现场需要支持 ie 浏览器。(吐槽一下:微软都放弃了,国内的客户大佬们还没放弃,真爱啊)桌面 --> 右键新建文本文档 --> 输入以下内容 --> 保存后修改文件后缀名为 .vbs --> 双击即可打开IE浏览器。如果帮助到您了,可以留下一个赞👍告诉我。脚本来打开 IE 浏览器。

前端笔记——放弃很容易,但坚持一定很酷 1396

基于Cesium实现,动态水面+大坝排水动画

一、绘制面状水域,使用水波纹理,进行渲染,水体透明,可以看到底色。三、使用粒子系统,将喷泉改变方向,加上重力设置,实现排水动画。二、绘制线状三维体,用作模拟大坝拦截效果。四、最后,模拟水位上升,进行淹没分析,

一醉千秋的专栏 1418

IE打不开MSDN,出现提示The specified CGI application encountered an error and the server terminated the proce...

IE打不开MSDN,出现提示The specified CGI application encountered an error and the server terminated the process 的解决方法 笔者测试环境:windows 7,IE8 方法如下: 打开IE8,“工具”——“Internet选项”——选择“高级”选项卡, 在“重置Intern...

weixin_30583563的博客 126

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

IE打不开MSDN,出现提示The specified CGI application encountered an error and the server terminated the proc...

IE打不开MSDN,出现提示The specified CGI application encountered an error and the server terminated the process 的解决方法 笔者测试环境:windows 7,IE8 方法如下: 打开IE8,“工具”——“Internet选项”——选择“高级”选项卡, 在“重置Internet Expl...

tempsitegoogle 290

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

vb 复制 剪贴板 html,用VB实现将脚本的输出复制到剪贴板 -电脑资料

问:嗨,Scripting Guy!有办法将脚本输出复制到剪贴板吗?-- ZW, Marseilles, France答:您好,ZW.如果您不介意用一些疯狂的解决方法,那么实际上将脚本输出复制到剪贴板相当容易,CODE:strCopy = "This text has been copied to the clipboard."Set bjIE = CreateObject("InternetEx...

weixin_39691968的博客 329

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

Internet Explorer 编程简述(一)WebBrowser还是WebBrowser_V1收藏

 Internet Explorer 编程简述(一)WebBrowser还是WebBrowser_V1收藏新一篇: Internet Explorer 编程简述(二)在IE中编辑OLE嵌入文档 | 旧一篇: Internet Explorer 编程简述(序)function StorePage(){d=document;t=d.selection?(d.selection.type

skyremember的专栏 4178

IE中的注释:saved from url

今天把Flex工程的swf标签换成了swfobject, 调试的时候IE总是弹出阻挡提示。于是,加入了一段简单的HTML注释,IE从此静悄悄了: <!-- saved from url=(0014)about:internet --> 关于这段注释详细的解释请参考MSDN。大意是向本地 HTML 文件中添加一条“saved from URL”注释,以指示 Internet Expl...

weixin_30710457的博客 121

[IE编程] IE网页截图技术总结

IE网页截图是IE编程中的经典问题。 IE9 beta发布之后我收到很多关于这方面的问题。 最近我把IE和Windows中这部分相关的代码重新架构了一下,使它们能够在IE9开启硬件加速的情况下完美兼容原来GDI函数。 趁着记忆还fresh, 写一个总结以供大家参考。 主要有以下3个接口可以实现IE网页截图。 1) HRESULT IHTMLElementRender::DrawToDC(HDC...

weixin_34162401的博客 103

理解在保护模式下Internet Explorer的工作方式

本文翻译于MSDN文章,名称为:Understanding and Working in Protected Mode Internet Explorer。Url:http://msdn.microsoft.com/zh-cn/library/bb250462(en-us,VS.85).aspx译序:看英文的文章老是觉得隔一层纱,此次下定决定翻译一篇英文文档,以提升自己英文阅读能力,也方便

胡超的学习日志 1万+

autoLisp 显示及控制 IE 浏览器的一种方法

用 autolisp 显示一个浏览器窗口,并展示程序或来自网络的内容。通常情况,可以创建一个 activex 对象进行操作。IE 文档对象的方法、事件、属性参考 MSDN 网站,但在 win10 x64 环境中并不可行。

yxp 的博客 1783

批处理隐藏打开IE

批处理隐藏打开IE

ljx0305的专栏 4335

C#通过Win32 API操作IE浏览器 --- 获得IE的URL

        Windows操作系统是一个消息驱动的操作系统,所以要想操作Windows操作系统中的任何控件,都可以用消息来进行。Windows操作系统开放了大量的API给用户,用户可以通过这些API从底层来操作Windows系统中的控件,并且是以消息的方式进行的,下面以C#通过Win32 API来操作IE浏览器 --- 获得IE的URL为例: 至于API消息函数的原型,可以在MSDN中查到,至

Experience set us apart! 7474

paip.InternetExplorer.Application打开非IE的解决方法

paip.InternetExplorer.Application打开非IE的解决方法 作者Attilax ,  EMAIL:1466519819@qq.com ,112237553@qq.com 来源:attilax的专栏 地址:http://blog.csdn.net/attilax 现象: 每次使用这个COM对象时打开360浏览器,而不是IE。。设置

attilax的专栏 8607

InternetExplorer.Application

strIText = GetInnerX("http://www.heise.de","TEXT")Open "C:/Inner.txt" For Output As #1Print #1, strITextClose 1Function GetInnerX(strURL As String, Optional strWhat As String = "HTML") As String    Di

WOLFYAN的专栏 2291
上一篇: 改注册表手动设置UAC白名单。
下一篇: 用HOOK来修改API函数的功能 @之禁止删除文件
darkread
博客等级 码龄25年 42粉丝 81原创
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值