A better way?

M

Mike

Does anyone know how to run a .wav file hidden or minimized. I am using the
RunApp action in a macro with the following command line:
"C:\Program Files\Windows Media Player\wmplayer.exe" "C:\Laughter.wav"
This works but I would prefer that the application be hidden.
Is there a better way other than using a macro?
Any thoughts anyone?
 
D

Dirk Goldgar

Mike said:
Does anyone know how to run a .wav file hidden or minimized. I am using
the
RunApp action in a macro with the following command line:
"C:\Program Files\Windows Media Player\wmplayer.exe" "C:\Laughter.wav"
This works but I would prefer that the application be hidden.
Is there a better way other than using a macro?
Any thoughts anyone?


How about this, which uses a Windows API function to play your .wav file?

http://www.mvps.org/access/api/api0011.htm
API: Play MIDI/Avi/Wav files
 
M

Mike

Shell works to open and hide the application. I seem to be having some
trouble opening the .wave file.
Here is what I have:

Private Sub Form_Load()

Dim RetVal
RetVal = Shell("C:\Program Files\Windows Media Player\wmplayer.exe", vbHide)

End Sub
Where and how do I need to type the "C:\Laughter.wav" to open the .wav file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top