vbs 的 CreateObject() 对象列表 [英] CreateObject() object List for vbs

查看:40
本文介绍了vbs 的 CreateObject() 对象列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢脚本编写,我不喜欢重新发明轮子,所以我喜欢 CreateObject
能否请您向我指出可在 VBScript 上使用的广泛且有用的对象列表,并附上简要说明.真的我还没有找到超过 50 个的网站.

I like scripting, I don't like to reinvent the wheel, so I like CreateObject
Can you please point me to a extense and useful list of objects that can be used on VBScript with a brief description. Really I haven't found a site with more than 50.

提前致谢

推荐答案

我自己不知道任何此类列表,但我知道您自己的计算机是第一个开始查找的地方.根据您安装的软件,您将有数百个甚至数千个 COM 对象可供使用.

I don't know of any such list myself, but I know that your own computer is the first place to start looking. Depending on what software you've installed, you will already have hundreds if not thousands of COM objects available to play with.

查看可用内容的一种方法是在 Word 或其他 Office 产品中的 VBA 编辑器中的工具">参考"下查看.然后包含一个引用,并转到对象浏览器查看其方法和属性.

One way to see what's available is by looking under Tools> References in the VBA editor within Word or other Office products. Then include a reference, and go to the Object Browser to see its methods and properties.

如果您没有安装 Office,还有其他方法可以使用 VBScript 列出您计算机上的 COM 接口.看看 Rob van der Woude 的 VBScript Scripting Techniques - Editors, IDEs &对象浏览器页面,他描述了一些提供对象浏览器的程序.

If you don't have Office installed, there are other ways to list the COM interfaces on your machine using VBScript. Take a look at Rob van der Woude's VBScript Scripting Techniques - Editors, IDEs & Object Browsers page where he describes some programs that provide an object browser.

他还提供了一个脚本,展示了如何从您的注册表中列出 ProgId.我的机器上有 3000 多个.并非所有人都会有可编写脚本的界面,但很多都会.仅 .NET 就有数百个有用的对象,并且所有对象都记录在 MSDN 上.一旦您有一个看起来很有趣的 ProgId,请进行 Google 搜索以了解更多相关信息.

He also gives a script that shows how to list ProgIds from your registry. I have over 3000 on my machine. Not all will have scriptable interfaces, but many will. .NET alone has hundreds of useful objects, and all are documented on MSDN. Once you have an interesting looking ProgId, do a Google search to find more about it.

这篇关于vbs 的 CreateObject() 对象列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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