脚本之家,脚本语言编程技术及教程分享平台!
分类导航

Python|VBS|Ruby|Lua|perl|VBA|Golang|PowerShell|Erlang|autoit|Dos|bat|

服务器之家 - 脚本之家 - VBS - vbs得没公开对象

vbs得没公开对象

2019-11-17 19:28vbs教程网 VBS

WSH中可以运用的InternetExplorer.Application

WSH中可以运用的InternetExplorer.Application 
如例: 
原代码: 
set ie=createobject("internetexplorer.application") 
msgbox "显示IE" 
ie.visible=true 
msgbox "隐藏ie" 
ie.visible=false 
msgbox "关闭ie" 
ie.quit 


下面这是internetexplorer.application的方法 
如上面用的 
ie.visible==false同ie.visible=true 
就是用这个方法 
Property Visible As Boolean 
Determines whether the application is visible or hidden. 

方法: 
Property AddressBar As Boolean 
Controls whether address bar is shown 
Property Application As Object 
Returns the application automation object if accessible, this automation object otherwise.. 
Property Busy As Boolean 
Query to see if something is still in progress. 
Sub ClientToWindow(pcx As Long, pcy As Long) 
Converts client sizes into window sizes. 
Property Container As Object 
Returns the container/parent automation object, if any. 
Property Document As Object 
Returns the active Document automation object, if any. 
Sub ExecWB(ByVal cmdID As OLECMDID, ByVal cmdexecopt As OLECMDEXECOPT, [pvaIn], [pvaOut]) 
IOleCommandTarget::Exec 
Property FullName As String 
Returns file specification of the application, including path. 
Property FullScreen As Boolean 
Maximizes window and turns off statusbar, toolbar, menubar, and titlebar. 
Function GetProperty(ByVal Property As String) 
Retrieve the Associated value for the property vtvalue in the context of the object. 
Sub GoBack 
Navigates to the previous item in the history list. 
Sub GoForward 
Navigates to the next item in the history list. 
Sub GoHome 
Go home/start page. 
Sub GoSearch 
Go Search Page. 
Property Height As Long 
The vertical dimension (pixels) of the frame window/object. 
Property HWND As Long 
Returns the HWND of the current IE window. 
Property Left As Long 
The horizontal position (pixels) of the frame window relative to the screen/container. 
Property LocationName As String 
Gets the short (UI-friendly) name of the URL/file currently viewed. 
Property LocationURL As String 
Gets the full URL/path currently viewed. 
Property MenuBar As Boolean 
Controls whether menubar is shown. 
Property Name As String 
Returns name of the application. 
Sub Navigate(ByVal URL As String, [Flags], [TargetFrameName], [PostData], [Headers]) 
Navigates to a URL or file. 
Sub Navigate2(URL, [Flags], [TargetFrameName], [PostData], [Headers]) 
Navigates to a URL or file or pidl. 
Property Offline As Boolean 
Controls if the frame is offline (read from cache) 
Property Parent As Object 
Returns the automation object of the container/parent if one exists or this automation object. 
Property Path As String 
Returns the path to the application. 
Sub PutProperty(ByVal Property As String, ByVal vtvalue) 
Associates vtvalue with the name szProperty in the context of the object. 
Function QueryStatusWB(ByVal cmdID As OLECMDID) As OLECMDF 
IOleCommandTarget::QueryStatus 
Sub Quit 
Exits application and closes the open document. 
Property ReadyState As tagREADYSTATE 
no description available 
Sub Refresh 
Refresh the currently viewed page. 
Sub Refresh2([Level]) 
Refresh the currently viewed page. 
Property RegisterAsBrowser As Boolean 
Registers OC as a top-level browser (for target name resolution) 
Property RegisterAsDropTarget As Boolean 
Registers OC as a drop target for navigation 
Property Resizable As Boolean 
Controls whether the window is resizable 
Sub ShowBrowserBar(pvaClsid, [pvarShow], [pvarSize]) 
Set BrowserBar to Clsid 
Property Silent As Boolean 
Controls if any dialog boxes can be shown 
Property StatusBar As Boolean 
Turn on or off the statusbar. 
Property StatusText As String 
Text of Status window. 
Sub Stop 
Stops opening a file. 
Property TheaterMode As Boolean 
Controls if the browser is in theater mode 
Property ToolBar As Long 
Controls which toolbar is shown. 
Property Top As Long 
The vertical position (pixels) of the frame window relative to the screen/container. 
Property TopLevelContainer As Boolean 
Returns True if this is the top level object. 
Property Type As String 
Returns the type of the contained document object. 
Property Visible As Boolean 
Determines whether the application is visible or hidden. 
Property Width As Long 
The horizontal dimension (pixels) of the frame window/object. 

延伸 · 阅读

精彩推荐
  • VBSAdsutil.vbs 在脚本攻击中的妙用[我非我原创]

    Adsutil.vbs 在脚本攻击中的妙用[我非我原创]

    adsutil.vbs是什么?相信用过IIS的网管员不会不知道。这是IIS自带的提供于命令行下管理IIS的一个脚本。位于%SystemDrive%\Inetpub\AdminScripts目录下。...

    VBS教程网2312020-07-07
  • VBS灵活实用VBS入门教程应用篇

    灵活实用VBS入门教程应用篇

    上一篇文章我们了解了VBS编程的一些基础知识,要更深入地学习还要学习选择结构和循环结构。 ...

    VBS教程网5742020-07-01
  • VBSVBS教程:正则表达式简介 -正则表达式语法

    VBS教程:正则表达式简介 -正则表达式语法

    正则表达式语法 一个正则表达式就是由普通字符(例如字符 a 到 z)以及特殊字符(称为元字符)组成的文字模式。该模式描述在查找文字主体时待匹配的...

    VBS教程网3302019-11-25
  • VBSWINDOWS脚本实践:为SAP补丁制作的VBS脚本代码

    WINDOWS脚本实践:为SAP补丁制作的VBS脚本代码

    本文主要分享WINDOWS脚本实践:为SAP补丁制作的VBS脚本代码,有需要的童鞋可以参考下...

    脚本之家3232020-07-06
  • VBSVBS文本文件操作实现代码

    VBS文本文件操作实现代码

    这篇文章主要介绍了VBS文本文件操作实现代码,需要的朋友可以参考下...

    VBS代码网8912020-08-12
  • VBSVBS数组深入浅出

    VBS数组深入浅出

    VBS数组在应用中没有像其他语句那么广泛,VBS数组存在不少功能上的局限性(如二维数组的定义、赋值),在使用上也没有java等语言那么便捷...

    VBS教程网2962020-08-18
  • VBS雷客图ASP站长安全助手vbs测试版代码

    雷客图ASP站长安全助手vbs测试版代码

    雷客图ASP站长安全助手是一个基于ASP的帮助站长维护网站安全的程序。这个版本(vbs测试版)主要用于服务器本地运行以查找ASP木马。此版本为测试版,希...

    脚本之家2312020-07-03
  • VBSVBS编程教程 (第1篇)

    VBS编程教程 (第1篇)

    VBScript的全称是:Microsoft Visual Basic Script Editon.(微软公司可视化BASIC脚本版). 正如其字面所透露的信息, VBS(VBScript的进一步简写)是基于Visual Basic的脚本语言....

    VBS教程网4812020-07-15