Windows Media Encoder SDK banner art

AudioVBScript Language

Scripts can be written using any Microsoft ActiveX Scripting language, but DirectMusic Producer enables scripting in a special language called AudioVBScript. The advantage of using AudioVBScript is that it requires a very small run-time library, which is part of the DirectMusic system components.

AudioVBScript is a subset of Microsoft Visual Basic Scripting Edition. Any script in AudioVBScript can be run in the Visual Basic Scripting Edition environment as well.

AudioVBScript supports the following keywords. For information on how these keywords are used, see the documentation for Visual Basic Scripting Edition.

AudioVBScript keyword
sub
dim
if
then
end
elseif
else
set
call
not
mod
is
and
or
true
false
nothing

The true, false, and nothing keywords are special identifiers. They are treated as constants that represent the values that their names suggest.

Note   Microsoft Visual Basic functions not listed in the table are not supported. For example, you cannot call Rnd, Date, Time, or any format conversion function.

AudioVBScript supports the operators shown in the following table.

AudioVBScript operator
(
)
(comma)
(apostrophe)
-
^
*
\
%
+
<
<=
>
>=
=
<>

Keywords and other identifiers, other than string literals, are not case-sensitive.

Identifiers—variable and subroutine names—can be any sequence of letters, digits, and underscores but cannot begin with a digit.

The following objects can be used in scripts:


© 2000-2001 Microsoft Corporation. All rights reserved.