Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CreateObject() object List for vbs

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.

Thanks in advance

like image 649
Luis Siquot Avatar asked Apr 14 '11 17:04

Luis Siquot


People also ask

What is CreateObject in VBScript?

Creates an Automation object of the specified class. If the application is already running, CreateObject will create a new instance. This method is provided so that other applications can be automated from Microsoft Visual Basic Scripting Edition (VBScript) 1.0, which did not include a CreateObject method.

What are objects in VB Script?

An object is an abstract term that scriptwriters use to represent a set of data (typically called properties) and functions (typically called methods). VBScript supports a type of object called COM objects. (VBScript 5.0 also supports another type of object called a class.

What is set in VBScript?

Generally, when you use Set to assign an object reference to a variable, no copy of the object is created for that variable. Instead, a reference to the object is created. More than one object variable can refer to the same object.


1 Answers

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.

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.

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.

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.

like image 102
Todd Avatar answered Sep 20 '22 01:09

Todd