What's a Script, Anyway?
Scripts are plain text files that
contain VBScript code. VBScript is an
easy-to-learn Visual Basic dialect. With
script files, you can automate almost
any task. Just add the file extension "vbs"
to your file, and it becomes executable.
Double-click on the file to launch it! |
 |
|
A
Bit More Detail, Please! |
|
Essentials |
Many users don't
know that Windows comes with a
built-in programming language.
While you can use any plain-text
editor to write VBScript scripts
as long as you add the "vbs"
file extension, it is much more
effective to write scripts using
a specialized editor like
SystemScripter.
SystemScripter colorizes command
words, features auto-completion,
offers extensive help and most
importantly provides "Intellisense"-like
help that lets you discover all
the hidden objects, commands and
other things you can script. |
|
|
Example 1 Discovering Scripts
|
 |
 |
Want to see a simple script? Here is
one: save it in an editor of your
choice (but don't forget to add the
"vbs" extension to make it a script).
Next, double-click your brand new
script. It gets executed.
MsgBox "Hello
World"
This wasn't really all that
exciting. Scripts can do a lot more,
though! If you use Windows XP, you
could for example make your computer
talk:
Set
objLib = CreateObject("SAPI.SpVoice")
objLib.Speak "Hello I am a virus -
and you are fired!!!"
The "secret" is the CreateObject
command. It lets you use almost any
system library. So your scripts can
virtually do anything. In this
example, the "SAPI.SpVoice" library
provided the speech commands. There
are hundreds of libraries on your
system, so scripts can automate just
about anything you wish.
Question remains: how do
you know? How do you know which
libraries there are? What their
names are? What commands are
available in them? Most of them are
not documented. This is where
SystemScripter can help you -
because it makes the tremendous
script power easily discoverable.

|
|
 |
|