Dec 072017
Visual Basic demo showing how to utilize MCI commands.
File MCISRC.ZIP from The Programmer’s Corner in
Category BASIC Language
Visual Basic demo showing how to utilize MCI commands.
File Name File Size Zip Size Zip Type
MAGIC.MCI 95 80 deflated
MCI.ICO 766 255 deflated
MCISTR.TXT 3218 1498 deflated
MCISTRNG.MAK 145 107 deflated
METAL.MCI 83 73 deflated
MMABOUTB.FRM 1536 717 deflated
MMCGLOB.BAS 1420 474 deflated
MMCOMBO.FRM 12073 5243 deflated
MMFILE.FRM 7993 3748 deflated
MMFILEOP.FRM 1139 611 deflated
MMHELPF.FRM 633 365 deflated
MMLINE.FRM 892 515 deflated
SOURCE.TXT 850 484 deflated
STRCMD.TXT 2666 1288 deflated
TPCREAD.ME 199 165 deflated
TRAIN.MCI 81 72 deflated
WAVE.MCI 154 84 deflated

Download File MCISRC.ZIP Here

Contents of the MCISTR.TXT file

Notes on using the MCI String Interface...

Each line consists of a command, a device name, and argument(s).

The basic devices are:


Examples are worth several thousand words...


To open a waveaudio file - (there are at least two methods)

1. long form

open c:\mwin\mmdata\diesel.wav type waveaudio alias train

2. short ("automatic") open(mci keys off the file extension as listed in System.ini)

open c:\mwin\mmdata\diesel.wav alias train

To play it - (the alias "train" stands for the combination of the filename and the device)

play train from 0("from 0" and "from start" are synonyms)


play train from 0 wait (use this if part of a series of strings; "wait" will wait until the play
command completes before executing the next string)


To quit -

close train (or "close all", which will take care of any other devices which
might be lying around open)



All MCI devices support the following commands:


Most also support these:

load (filename)


play (from [position] to [position])

recordinsertfrom... tooverwrite("insert" means start record @ current position)

resume(after pause...)

save (filename)

seekto [position]to startto end

set(various device-dependent parameters)

statuscurrent trackpositionnumber of trackstime format



More examples (see references below for complete documentation)

sound(this plays the system default waveaudio sound as set up in control panel)

sound (sound) [see win.ini for sound names]

capability cdaudio can record(result should be "false")

status cdaudio mode(returns "paused", "playing", "stopped", "recording", "seeking", etc.)

seek sequencer to start

For still further examples, see the ".mci" files included with the distribution.

Note: "status ... mode" command won't work with sequencer or waveaudio until a
file is opened...:


1. Microsoft Windows Multimedia Programmer's Reference ($27.95) ISBN 1-55615-389-9

This tome contains possibly more than you wanted to know, and it can be confusing,
but all the information you need is there, somewhere. Chapter 7 is the best place
to start for users of MCI Stringer.

2. Charles Petzold's excellent series of articles in the PC Magazine "Environments" column
running from November 91 to January 92.

The only problem with these articles is that the examples require the Microsoft MultiMedia
Developers Toolkit (MDK), at $500 (approx.). MCI Stringer was written so that we can
try out all this neat stuff without the MDK. Enjoy!


Copyright 1992Atlantic Microsystems

Written by:Pete AsensioCIS 70143, 467
Atlantic Microsystems
110 Fishing Brook Road
Westbrook CT 06498
(203) 399-9846

 December 7, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>