1 | /* rexx - Install the CW-Audio classes */
|
---|
2 |
|
---|
3 | call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
|
---|
4 | call SysLoadFuncs
|
---|
5 |
|
---|
6 | curDir=DIRECTORY()
|
---|
7 |
|
---|
8 |
|
---|
9 | call SysCls
|
---|
10 | SAY ''
|
---|
11 | SAY 'This skript will install the CWAudio classes.'
|
---|
12 | SAY 'Do you want to continue?'
|
---|
13 | SAY ''
|
---|
14 | SAY 'Enter Y for yes and N for no.'
|
---|
15 | SAY ''
|
---|
16 | SAY '> '
|
---|
17 | parse value SysCurPos() with aktzeile aktspalte
|
---|
18 | newposition=SysCurPos(aktzeile-1,2)
|
---|
19 |
|
---|
20 | resp=LINEIN()
|
---|
21 | IF TRANSLATE(resp)='N' THEN EXIT
|
---|
22 |
|
---|
23 | classDLL=DIRECTORY()||'\cwmm.dll'
|
---|
24 |
|
---|
25 | rc=SysRegisterObjectClass('CWAudio', classDLL)
|
---|
26 | IF rc=0 THEN DO
|
---|
27 | SAY 'Error while registering the class.'
|
---|
28 | '@PAUSE'
|
---|
29 | Exit
|
---|
30 | END
|
---|
31 | 'repclass MMAudio CWAudio'
|
---|
32 |
|
---|
33 | SAY 'Registering MP3-Class...'
|
---|
34 | rc=SysRegisterObjectClass('CWMP3', classDLL)
|
---|
35 | IF rc=0 THEN DO
|
---|
36 | SAY 'Error while registering the class.'
|
---|
37 | SAY 'Only the icon will be wrong now.'
|
---|
38 | END
|
---|
39 |
|
---|
40 |
|
---|
41 | SAY 'Registering Ogg-Class...'
|
---|
42 | rc=SysRegisterObjectClass('CWOGG', classDLL)
|
---|
43 | IF rc=0 THEN DO
|
---|
44 | SAY 'Error while registering the class.'
|
---|
45 | SAY 'Only the icon will be wrong now.'
|
---|
46 | END
|
---|
47 |
|
---|
48 | SAY 'Registering CDTrack-Class...'
|
---|
49 | rc=SysRegisterObjectClass('CWCDTrack', classDLL)
|
---|
50 | IF rc=0 THEN DO
|
---|
51 | SAY 'Error while registering the class.'
|
---|
52 | END
|
---|
53 |
|
---|
54 | '@PAUSE'
|
---|
55 | EXIT
|
---|
56 |
|
---|