| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Rexx, Sbpro, Modem 2/ 4 |
Continued from previous message.
/* Set the variables. */
call keyword arg1a, arg1b
call keyword arg2a, arg2b
call keyword arg3a, arg3b
call keyword arg4a, arg4b
call keyword arg5a, arg5b
/* Load the DLL, initialize MCI REXX support */
rc = RXFUNCADD('mciRxInit','MCIAPI','mciRxInit')
InitRC = mciRxInit()
MciCmd = 'open'
/*
** Check to see if the FILE && DEV variables are valid.
*/
if FILE'' then
do
if DEV'' then
MciCmd = MciCmd FILE 'type' DEV
else
MciCmd = MciCmd FILE
end
else if DEV'' then
MciCmd = MciCmd DEV
else
do
call Help
exit 0
end
/*
** Append the rest of the command line.
*/
MciCmd = MciCmd 'alias rexxalias wait'
/*
** Issue the open command.
*/
MacRC = SendString(MciCmd)
if MacRC 0 then signal ErrExit
else
do
if DEV='' then /* device not specified */
do /* determine the device type */
MacRC = SendString("capability rexxalias device type wait")
if MacRC 0 then
do
junk = SendString("close rexxalias wait")
signal ErrExit
end
end
else /* set the device specified as the device type */
RetSt = DEV
/* If a wave file is to be played then do a status length */
/* to determine if the wave file exists. A wave file is */
/* the only type of device that if it doesn't exist and */
/* you play it, it won't come back as file not found */
if TRANSLATE(RetSt) = 'WAVEAUDIO' then
do
MacRC = SendString("status rexxalias length wait")
/* If length is 0 no file exists */
if MacRC 0 then
do
junk = SendString("close rexxalias wait")
signal ErrExit
end
if RetSt = 0 then
do
junk = SendString("close rexxalias wait")
ErrRC = 70555
MacRC = mciRxGetErrorString(ErrRC, 'ErrStVar')
say 'mciRxGetErrorString('ErrRC') =' ErrStVar
signal ErrExit
end
end
end
/*
** Exercise mciRxGetDeviceID function
*/
DeviceID = mciRxGetDeviceID(""rexxalias"")
/*
** Check to see if a time format was given.
*/
if TIMEFMT '' then
Continued in next message.
* With foxes we must play the fox.
---
* RoseReader 2.50* P004198 Entered at [PROGRAMMERS GLD]
--- QScan v1.067b
* Origin: Programmer's Guild BBS, Hamilton, Ont. (1:244/317)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 244/317 300 99 12/12 3615/50 229/2 12/2442 711/409 54/54 711/808 809 @PATH: 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.