home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: OtherApp
/
OtherApp.zip
/
avcmachi.zip
/
tnum.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-12-05
|
1KB
|
54 lines
/* Script to Play Number to Sound Card */
parse arg caller
if caller='' then exit
number=substr(caller,11,7)
/* Load the DLL, initialize MCI REXX support */
call RXFUNCADD 'mciRxInit','MCIAPI','mciRxInit'
rc=mciRxInit()
do while rc \= ""
rc=linein(users.lst,,1)
parse value rc with . c_id . . v_name u_name
if c_id = "ID:"||number & left(v_name,1) <> "-" then
do
mcihallo=".\names\"word(rc,5)".wav"
call play_wav_file
signal mci_end
end
end
do i=1 to length(number)
mcihallo=".\number\"substr(number,i,1)".wav"
call play_wav_file
end
mci_end:
call stream users.lst,'c','close'
MacRC = mciRxExit()
call RXFUNCDROP 'mciRxInit'
exit(0)
/* -------------- Sound Card Ends -------------- */
/* -------------- Play_Wave_File --------------- */
play_wav_file:
retst=''
myopen="Open" mcihallo "Alias Wave shareable Wait"
myplay="Play Wave Wait"
MacRC = mciRxSendString(myopen, 'RetSt', '0', '0')
MacRC = mciRxSendString(myplay, 'RetSt', '0', '0')
MacRC = mciRxSendString('close Wave wait', 'RetSt', '0', '0')
return
/* -------------- Play_Wave_File Ends ---------- */