CD Player Action
<AMCDPLAYER ACTION="text [options]" DRIVELETTER="text" TRACKS="text" WAIT="yes/no">
Controls the CD drive on the system. This is only for audio CD's. To specify multiple tracks when using the "Play Tracks" option, separate the tracks with a dash (e.g. 2-5 will play tracks 2 through 5).
Used to play a music CD. Common uses include: alarm clock, server audio notification, radio music broadcast system or any other application that requires audio to be played.
Specifies the drive letter of the CD-ROM that the command should be directed to. If set to "default" the default CD-ROM drive is used.
Specifies the action that should be performed on the CD-ROM drive.
The available options are:
play: Causes the CD-ROM to begin playing the audio CD from the first to the last track
stop: Causes the CD-ROM to stop playing the audio CD.
pause: Causes the CD-ROM to pause playback of the audio CD
previous: Causes the CD-ROM to go back one track on the currently playing audio CD
next: Causes the CD-ROM to skip to the next track on the currently playing the audio CD
open: Causes the CD-ROM to eject or open the drive door.
close: Causes the CD-ROM to close the tray or drive door.
playtrack: Causes the CD-ROM to begin playing the track(s) specified in the Track [TRACK] parameter.
next: Causes the CD-ROM to begin playing the audio CD
Valid only when the Action [ACTION] parameter is set to "playtrack". Specifies the tracks that should be played. To specify multiple tracks separate the tracks with a dash (e.g. 2-5 will play tracks 2 through 5) or a comma (e.g. 1,5 will play tracks 1 and 5) .
Valid only when Action [ACTION] is set to Play ["play"] or Play Track ["playtrack"]. When set to YES, causes the task to stop at the current step and not move on until the entire CD or the specified tracks have finished playing. When set to NO, CD Player will return and allow the task to continue immediately while the CD is playing.
This action includes the Description tab for entering a custom step description.
More on setting custom step description
This action also includes the standard Error Causes and On Error failure handling options/tabs.
More on Error Handling Options
All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.
More on variables
More on expressions
More on the expression builder
NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.
<AMCDPLAYER DRIVELETTER="default" ACTION="previous" WAIT="YES">
<AMCDPLAYER DRIVELETTER="F:" ACTION="play">
<AMCDPLAYER DRIVELETTER="default" ACTION="playtrack" TRACK="1-5" WAIT="YES">