On Thurdsay, Oct 21 1999, Andrew Griffin wrote:

> Well I tried using this:
>
> on startPlaying
>   --put your commands to alias the file here and then to play it
>   send "checkFinished" to me in 5 seconds
> end startPlaying
>
> on checkFinished
>   if mciSendString("status myAudio") is not "stopped" then
>     send "checkFinished" to me in 5 seconds
>     exit checkFinished
>   end if
>   --its finished, insert script to play it again here
>   send "checkFinished" to me in 5 seconds
> end checkFinished
>
> But it didn't work the way I needed it to.  In fact, when I ran it, the
> mcisendstring sent back that it was missing parameters.  Is there
> something special that you need to send to the mci?  It's specifically
> on this line:
>
> if mciSendString("status myAudio") is not "stopped" then
>
> Now, I've tried just using this line to check if the status of myAudio
> is stopped, but it doesn't seem to know what I'm talking about.  Maybe
> it just doesn't know what "stopped" is.  Is there some other way to
> check myAudio's status?

The example script I gave assumed you opened the MCI device using the name
"myAudio" as the alias.  If you used a different alias, you'll need to
change the "myAudio" part in the script example.  If you're just playing the
MCI without opening it up as a named alias, you need to do it that way - see
the mci examples stack on ftp://ftp.metacard.com/MetaCard/mci.mc.gz for how
to do that.

Regards,

Kevin

> --Andrew

Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.

Reply via email to