Category : OS/2 Files
Archive   : DIAL.ZIP
Filename : RING.CMD

 
Output of file : RING.CMD contained in archive : DIAL.ZIP
/* Telefonprogram
Skrevet av Helge Hafting
email:
[email protected]
Adresse:
poverudvn. 22
3440 R›yken
*/

arg tlf

if (tlf='' | tlf='?') then signal hjelp

call rxfuncadd "mciRxInit", "MCIAPI", "mciRxInit"
call mciRxInit

rc = mciRxSendString('open waveaudio alias lyd wait', 'RetStr', '0', '0')
if rc <> 0 then signal feil

forrige = '_'
do while tlf <> ''
siffer = left(tlf,1)
tlf = substr(tlf,2)
type = pos(siffer,'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789*0#')
if type > 0 then do
if siffer = '*' then siffer='stjerne'
else if type < 27 then siffer = trunc((type + 2) / 3)
filnavn = siffer'.wav'
if siffer = forrige then rc = mciRxSendString('seek lyd to start wait', 'RetStr', '0', '0')
else rc = mciRxSendString('load lyd' filnavn 'wait', 'RetStr', '0', '0')
if rc <> 0 then signal feil
rc = mciRxSendString('play lyd wait', 'RetStr', '0', '0')
if rc <> 0 then signal feil
end
end


rc = mciRxSendString('close lyd wait', 'RetStr', '0', '0')
if rc <> 0 then signal feil

call mciRxExit

exit(0)

feil:
MacRC = mciRxGetErrorString(rc, 'ErrStVar')
say 'error' rc',' ErrStVar
rc = mciRxSendString('close lyd wait', 'RetStr', '0', '0')
call mciRxExit
exit(rc)

hjelp:
say
say 'Bruk: ring '
say 'Eksempler:'
say
say 'ring 12345678'
say 'ring (123) 45-45-45'
say 'ring 12345678 *5 *7 ##4'
exit(0)






  3 Responses to “Category : OS/2 Files
Archive   : DIAL.ZIP
Filename : RING.CMD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/