home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
oct93
/
misc
/
dasmodplay.lha
/
DASModPlay
/
Goodies
/
PlayRandom.drx
< prev
next >
Wrap
Text File
|
1993-08-19
|
2KB
|
63 lines
/*
Arexx demoscript for DasModplayer by Erno Tuomainen
Fade Volume to 1 and Select RANDOM module from Program list!
If DASModPlayer IS NOT RUNNING, then this script will run it
LOAD your ModuleList (edit MODLISTNAME) and start playing the
RANDOM module in the list!
*/
ModListName='YourList' /* Specify your Program List here */
/* Full PATHFilename! eg. Dh0:List.prg */
PlayerPath='Work:miscutils/DASModPlayer' /* Path for DASMODPLAYER */
OPTIONS Results
if ~SHOW('L','rexxsupport.library') then DO
if addlib('rexxsupport.library', 0, -30, 0) then
nop
ELSE DO
say 'RexxSupport.library NOT Available, FIND IT!'
exit 10
END
END
result = SHOW('Ports', 'DASMP_Rexx')
if result=0 then DO
say 'DasModPlayer not Running! Loading DasModplayer and ProgramList'
say ''
ADDRESS COMMAND(Playerpath)
/* we need the following 3 lines to test when AREXX-script has loaded */
/* DASModPlayer into the backround. */
Checkloop1:
result = SHOW('Ports','DASMP_Rexx')
if result=0 then signal Checkloop1
If ModListName='YourList' then DO
say 'Please EDIT this Rexx-script and change your program list into variable LISTNAME'
EXIT
END
ADDRESS 'DASMP_Rexx'
PLAYMODE RANDOM /* Set sequential play and repeating programlist */
LOAD ModListName /* Load your program list*/
MOVELIST 0 /* Jump to start of list */
PLAY /* Start playing RANDOMLY */
EXIT
END
ADDRESS 'DASMP_Rexx'
MODCOUNT /* Get number of modules in ProgramList */
if result < 2 then do
say 'Not enough Modules loaded into ProgramList'
exit
END
PLAYMODE RANDOM /* Set random playmode */
NEXT /* Start Playing the Next Module */
EXIT