home *** CD-ROM | disk | FTP | other *** search
- /* Script Action Jouer */
-
- parse arg type exe '"' filename '"'
-
- type=upper(type)
-
- say type
- /* Selection du type de player */
-
- if type="HIPPOPLAYER" then call HIP
- if type="EAGLEPLAYER" then call EP
- exit
-
- /* Hippoplayer */
- HIP:
- if ~show(ports,'HIPPOPLAYER') then address command exe
- hiploop:
- call delay(25)
- result = SHOW("p","HIPPOPLAYER")
- if result=0 then signal hiploop
- address 'HIPPOPLAYER'
- ZIP 0
- if pos(':', filename) ~= 0 then play filename
- exit
-
- /* EaglePlayer */
-
- EP:
- if ~show(ports,'rexx_EP') then address command 'WBRUN '||exe
- eploop:
- result = SHOW("p","rexx_EP")
- if result=0 then signal eploop
- address 'rexx_EP'
- if pos(':', filename) ~= 0 then loadmodule filename
- exit
-