home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / +system+ / tools / sound / eagleplayer2.00 / rexx / ep_playpause.dopus < prev    next >
Text File  |  1998-02-26  |  733b  |  36 lines

  1. /* Eagleplayer control for DOPUS 4
  2.    (c) 1993-97 DEFECT Softworks
  3.    switches between play and pause
  4.  
  5.    ------------------------------------------------------------------------
  6.    Call as:
  7.    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  8.    [ARexx]  Eagleplayer2:Rexx/EP_PlayPause.dopus {p}
  9.  
  10.    Flags:   none required
  11.  
  12. */
  13. parse arg opusport
  14.  
  15. options results
  16.  
  17. if pos('rexx_EP',SHOW('Ports')) = 0 then do
  18.  address value opusport
  19.  toptext 'Eagleplayer-Port not found'
  20.  exit 0
  21.  end
  22. address 'rexx_EP'
  23.  
  24. status g ply
  25. if result=="yes" then do
  26.   play 0
  27.   address value opusport
  28.   toptext 'Eagleplayer: Pause Playing'
  29.  end
  30.  else do
  31.   play 1
  32.   address value opusport
  33.   toptext 'Eagleplayer: Start Playing'
  34.  end
  35. exit
  36.