Dave "Crash" Dummy wrote:
> I dumped Windows Media Player, which I really want to be rid of, but
> discovered that that also took the WMP ActiveX control with it, which
> I do use from time to time. Does anybody know where I can download
> the WMPlayer.ocx file? Finding anything on the MS site is impossible.
I use "sndrec32.exe" as a workaround for WMPlayer.ocx in my application.
It is not available in my Windows 7 system, but one I imported from XP
works fine. My need is to run a sound in the background, and sndrec32
with the proper switches will do that. This is the code I use:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "sndrec32 /play /embedding /close song.wav"
Another way to do the job is to create an IE object and insert a
bgsound tag, but this is messy and requires setting a run time and
closing the object when done. Hosting the script in a HTA file would
also work.
--
Crash
Today is the first day of the rest of your life,
and there's not a damned thing you can do about it.