home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Utilities
/
ACDPlay
/
src
/
V1.5
/
ARexx
/
Info.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-04-27
|
2KB
|
115 lines
/* Info.rexx 1.0 by Martin Kresse
This script dumps all known variables of ACDPlay. */
OPTIONS RESULTS
address 'ACDPLAY'
'GETDEVICE'
device = RESULT
'GETUNIT'
unit = RESULT
'GETLUN'
lun = RESULT
'GETPRODUCT'
product = RESULT
'GETREVISION'
revision = RESULT
'GETVENDOR'
vendor = RESULT
'GETVENDORSPECIFIC'
specific = RESULT
'GETSENSEKEY'
sensekey = RESULT
'GETADDSENSECODE'
sensecode = RESULT
'GETADDSENSECODEQUAL'
sensecodequal = RESULT
say
say "Device: Device : "device
say "¯¯¯¯¯¯¯ Unit : "unit
say " LUN : "lun
say
say "Drive: Product : "product
say "¯¯¯¯¯¯ Vendor : "vendor
say " Revision : "revision
say " Specific : "specific
say
if (sensekey = 0) then do
say "Errors: There havn't been any errors yet."
say "¯¯¯¯¯¯¯"
say "<RETURN>"
end
else do
say "Errors: last Sense Key : $"D2X(sensekey,2)
say "¯¯¯¯¯¯¯ Additional Sense Code : $"D2X(sensecode,2)
say " Add. Sense Code Qualifier : $"D2X(sensecodequal,2)
say "<RETURN>"
end
pull nil
'GETSTATUS'
status = RESULT
'GETCDTITLE'
cdtitle = RESULT
'GETARTIST'
artist = RESULT
'GETTRACKNUMBER'
tracknum = RESULT
'GETCDLENGTH'
total = RESULT
'GETCURRENTTRACK'
curtrack = RESULT
'GETSONGNAME'
songname = RESULT
'GETCURRENTINDEX'
curindex = RESULT
if (status = 16) then do
say "Disc: There's no disk inserted."
say "¯¯¯¯¯"
say
end
else do
say "Disc: Title : "cdtitle
say "¯¯¯¯¯ Artist : "artist
say " Tracks : "tracknum
say " Total playing time : "total%75%60":"total%75//60"."total//75
say
if (status = 0) then
say " Status : not valid"
else if (status = 17) then
say " Status : CD is playing"
else if (status = 18) then
say " Status : CD is paused"
else
say " Status : CD is stopped"
say " Current Track : "curtrack" - "songname
say " Current Index : "curindex
say
say
say
say
say
end