I need to play different wav files in NAV to accommodate each prompt: CONFIRM, MESSAGE, ERROR,..
how to do this?
I already tried using OCX windows media player. How do I hide the player?
the other alternative:
using BEEP()
2 beeps:-
BEEP(1925,22);
SLEEP(100);
BEEP(1925,22);
0
Answers
http://www.mibuso.com/dlinfo.asp?FileID=166
already set the correct global variable for WMPlayer.
used this:
WMPlayer.Open(<file name>);
but nothing happened.
Hope this helps
Thomas
The one that is really easy to use is :"Microsoft NetShow Player.NSPlay"
here is a simple form that uses this automation
In order to prevent automation errors always make sure that the file can be opened by the user before playing it.
Hope this helps,
Regards,
Willy
WMPlayer -> OCX ->Windows Media Player
NOTE!!! There are usually 2 choices
C:\WINDOWS\system32\msdxm.ocx <<<You want this one!!!!!
C:\WINDOWS\system32\wmp.dll
Add your code to on open form or whereever - CU1 with a "Welcome.WAV" for example..
1 line real simple, we use this for scanning. After the code is complete it makes a sound so we know its done and we can move to the next package.
OnOpenForm()
WMPlayer.Open ('X:\Sounds\WELCOMEF.WAV');
Save->Compile->Enjoy!
You can place all your working sounds in the Nav Database Folder (Networked Folder) so all can access the file.
http://www.waveevents.com/MyFilez/wavs/ ... lcomef.wav
here's another you can have fun with on a confirm
http://www.waveevents.com/MyFilez/wavs/ ... smastr.wav
Here's the orig post from 2006 - thanks to Luc for Resurrecting it.
viewtopic.php?t=13007
http://www.BiloBeauty.com
http://www.autismspeaks.org
This works! thanks! =D>
http://www.BiloBeauty.com
http://www.autismspeaks.org