## MMPM/2 Device Driver Reference

[prev][next][parent][TOC]

### P2STRING Script Language

This section describes the contents of a script file and how to interpret the script language. Script files can contain several types of lines including:

Comments
Tool Directives
MMPM/2 String Commands
Expected Return Strings
Expected Error Messages
Expected Notification Messages

The following example displays an example of how a script file appears.

    @ PROCESSES = 2
    @ EVENTS = { HASCTRL1 = 1 , HASCTRL2 = 0 }
    #
    #
    #
    @ PROCESS   1
    ;
    ;   set   masteraudio   level   for   session   to   10 %   -   will   affect   all
    ;   3   processes
    ;
    masteraudio   volume   10
    ;
    ;   open   waveaudio   device   non - exclusively
    ;
    open   waveaudio   alias   wav1   shareable   notify
    + MM _ MCINOTIFY   MCI _ NOTIFY _ SUCCESSFUL   MCI _ OPEN   # 1
    @ WAIT _ NOTIFY   1   60000
    @ WAIT _ PASSDEVICE   wav1   60000
    @ WAIT _ NOTIFY   21   60000