General EQWatcher Concepts > Venturing into the Unknown > Media
List of commands -- note that "integer" is not a valid user data type, it means any of char, byte, signed or unsigned long
CDStop()
PlayWAV(string filename)
PlayWAVSync(string filename)
SayNumber(integer expression)
CDStop() command
Stop the CD player.
Return value
none
Example
// This alias stops the cd player
alias("cd stop")
{
CDStop();
}
PlayWAV(string filename) command
Plays a .WAV file asynchronously (may be interrupted)
Return value
none
Parameters
filename
Filename of the .WAV to play, including full path (relative paths not supported yet)
Example
// This alias plays a .WAV asynchronously given the filename
public string WavName;
alias("play \"@WavName@\"")
{
PlayWav(WavName);
}
PlayWAVSync(string filename) command
Plays a .WAV file synchronously (will not be interrupted)
Return value
none
Parameters
filename
Filename of the .WAV to play, including full path (relative paths not supported yet)
Example
// This alias plays a .WAV synchronously given the filename
public string WavName;
alias("play \"@WavName@\" sync")
{
PlayWavSync(WavName);
}
SayNumber(integer expression) Command
Uses .WAV files to "say" the numeric value of the evaluated expression
Return value
none
Parameters
expression
Any expression evaluating to an integer value. If the passed parameter is not a variable, the expression will be evaluated to a SIGNED LONG value (otherwise, the variable's original data type is kept). If you must evaluate an expression to an UNSIGNED LONG, use a variable and evaluate the expression, using the variable as the parameter instead.
Example
// This example runs a commands file. Please note the compiler special
characters \\ used to mean
// a single \ for the path name. This is specific to the compiler, and does not
need to be used
// when calling aliases (entering EQWatcher Advanced commands)
function main()
{
LoadScript("scripts\\test.eac");
}