Jump to content

SET

From EDM2

The SET command sets the various control items.

Syntax

SET ─── object ───┬─ AUDIO ─┬─ ALL ───┬─ ON  ─┬─┬───┬──────────┬───┤
                  │         │         └─ OFF ─┘ │   ├─ WAIT    ─┤
                  │         ├─ LEFT ──┬─ ON  ─┬─┤   └─ NOTIFY  ─┘
                  │         │         └─ OFF ─┘ │
                  │         ├─ RIGHT ─┬─ ON  ─┬─┤
                  │         │         └─ OFF ─┘ │
                  │         ├─ OVER milliseconds─┤
                  │         └─ VOLUME percentage─┘
                  ├─ DOOR CLOSED ───────────────┤
                  ├─ DOOR OPEN ─────────────────┤
                  ├─ DOOR LOCKED ───────────────┤
                  ├─ DOOR UNLOCKED ─────────────┤
                  ├─ SPEED FORMAT PERCENTAGE ───┤
                  ├─ SPEED FORMAT FPS ──────────┤
                  ├─ TIME FORMAT MILLISECONDS ──┤
                  ├─ TIME FORMAT MMTIME ────────┤
                  ├─ VIDEO OFF ─────────────────┤
                  └─ VIDEO ON ──────────────────┘

Keywords

object
Object associated with this media control interface command. The object can be one of the following:
  • Device type
  • Device name
  • Filename
  • Alias
AUDIO
Sets the audio attributes of the device context specified by the ALL, LEFT, RIGHT, OVER, and VOLUME keywords.
ALL
Apply to both or all of the channels (default). Specify ON or OFF with the ALL keyword.
ON
Enable audio output.
OFF
Disable audio output.
LEFT
Apply to the left channel. Specify ON or OFF with the LEFT keyword.
RIGHT
Apply to the right channel. Specify ON or OFF with the RIGHT keyword.
OVER milliseconds
Apply the change over the specified time period (fade).
VOLUME percentage
Set the device/mixer channel volume level.
DOOR CLOSED
Retracts the tray and closes the door, if possible.
DOOR OPEN
Opens the door and ejects the tray, if possible.
DOOR LOCKED
Locks the media cover on the device (if any). This disables manual ejection of the media from the device.
DOOR UNLOCKED
Unlocks the media cover on the device (if any). This enables manual ejection of the media from the device.
SPEED FORMAT PERCENTAGE
Sets the speed format to percentage.
SPEED FORMAT FPS
Sets the speed format to frames per second.
TIME FORMAT MILLISECONDS
Sets the time format to milliseconds. You can abbreviate milliseconds as ms.
TIME FORMAT MMTIME
Sets the time format to MMTIME.
VIDEO OFF
Disables video output.
VIDEO ON
Enables video output.
WAIT
The command is executed synchronously. The function waits until the requested action is complete before returning to the application.
NOTIFY
The command is executed asynchronously, allowing control to be returned immediately to the application. When the requested action is complete, an MM_MCINOTIFY message is sent to the application window procedure.

Example

set waveaudio01 time format milliseconds wait