![]() |
WindowsMediaPlayer question
hello
I have a very simple macro here very which I need to adapt slightly to purpose. It's function is to play an audio file on WindowsMediaPlayer1 The assumption is that WindowsMediaPlayer1 is already playing an audio file of indeterminate length when this macro is triggered. I simply need to make it wait till it's finished playing this audio file its already playing before playing the new one called here, rather than starting to play immediately. Sub playaudio() 'something here to wait for WMP to finish what its playing first UserForm1.WindowsMediaPlayer1.URL = "c:\video\audiofile.wav" End Sub Many thanks if you know how |
WindowsMediaPlayer question
Correction I meant determinate length but at an indeterminate point in the
process of playing it "teepee" wrote in message ... hello I have a very simple macro here very which I need to adapt slightly to purpose. It's function is to play an audio file on WindowsMediaPlayer1 The assumption is that WindowsMediaPlayer1 is already playing an audio file of indeterminate length when this macro is triggered. I simply need to make it wait till it's finished playing this audio file its already playing before playing the new one called here, rather than starting to play immediately. Sub playaudio() 'something here to wait for WMP to finish what its playing first UserForm1.WindowsMediaPlayer1.URL = "c:\video\audiofile.wav" End Sub Many thanks if you know how |
All times are GMT +1. The time now is 08:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com