home *** CD-ROM | disk | FTP | other *** search
- /*
- 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')
- 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')
- 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'
- 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'
-
- 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
-