|
I found somewhat of a solution using PC commands: PGM PARM(&SOUNDCODE) DCL VAR(&SOUNDCODE) TYPE(*CHAR) LEN(10) DCL VAR(&PLAY2) TYPE(*CHAR) LEN(128) + VALUE('c:\windows\system32\sndrec32.exe + -play -close "C:\Sounds\') CHGVAR VAR(&PLAY2) VALUE(&play2 *tcat &soundcode + *tcat '.wav"') STRPCO PCTA(*NO) MONMSG MSGID(IWS4010) STRPCCMD PCCMD(&PLAY2) PAUSE(*NO) This will work as long as each PC has a directory Sounds with every .wav file I play. The only problem is the sound recorder displays on the screen while it's playing the .wav file. Does anyone know how to pass a parm or something so that is in background only? Thanks, Craig -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Shannon O'Donnell Sent: Thursday, August 31, 2006 1:59 PM To: midrange-l@xxxxxxxxxxxx Subject: Re: Playing sounds on error That's what I was going to suggest only I would use the PC-Engine for this. Much more flexibility. Www.turbogorilla-software.com. -----Original Message----- From: "nickmart@xxxxxxxxxxxxxxx"<nickmart@xxxxxxxxxxxxxxx> Sent: 8/31/06 11:33:02 AM To: "Midrange Systems Technical Discussion"<midrange-l@xxxxxxxxxxxx> Subject: Re: Playing sounds on error Another alternative would be the use of the STRPCO/STRPCCMD combination of commands. If the applications are controling the error processing, you could send a PCCMD string into the STRPCCMD command identifying a wav file using the command string of "sndrec32 chimes.wav" to play the chimes wav file as an example. The pc application name would vary based on audio player of choice. It would take a lot a special programming in order to accomplish that. Nick W. Mart > A client would like different sounds to play on various errors in a new > application. > > Has anyone done this? > > Thanks, > > Craig > > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, [Message truncated. Tap Edit->Mark for Download to get remaining portion.]
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.