home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Sound
/
RadioSeLeCtA
/
radioSeLeCtA.rx
< prev
next >
Wrap
Text File
|
2000-08-25
|
2KB
|
55 lines
/* Radio SeLeCtA from JAH almightyjah@softhome.net*/
OPTIONS RESULTS
/* preferences */
streamrexx='sys:scripts/StreamMP3.rx' /* path of streammp3 rexx script */
strMP3out='-strMP3.debug-' /* debug output for streamMP3 */
radio0='wwwhatsup-dbc' /* add up to 5 files */
radio1='mix' /* files are ascii files */
radio2='' /* containing mp3 url */
radio3='' /* or sites which */
radio4='' /* stream directly */
/*the name of the file will be the radio name which will appear into the selecter */
/* "code" !? */
if SHOW(PORTS,MIAMI.1)==0
then do
say "Miami is not here !"
exit
end
ADDRESS VALUE MIAMI.1
ISONLINE
if RC==0
then do
say 'U are not cennected : I will have to it for u'
ONLINE
end
address command
'RequestChoice >pipe:a TITLE "Radio SeLeCta !!!" BODY "Which Radio do U wanna listen to ?" ' radio1 radio2 radio3 radio4 radio0
CALL OPEN(ficres, 'pipe:a','R')
valres = READCH(ficres,1)
CALL CLOSE(ficres)
if valres==0
then 'run >'strMP3out' rx 'streamrexx' 'radio0
else
if valres==1
then 'run >'strMP3out' rx 'streamrexx' 'radio1
else
if valres==2
then 'run >'strMP3out' rx 'streamrexx' 'radio2
else
if valres==3
then 'run >'strMP3out' rx 'streamrexx' 'radio3
else
if valres==4
then 'run >'strMP3out' rx 'streamrexx' 'radio4
exit