January 5, 2005Automating Windows Media PlayerPosted 2066 days ago on January 5, 2005As a journalist, I tend to record numerous press briefings and interviews, and sometimes I have the arduous task of transcribing parts of them. Some time ago I shifted from minidisk to a hard disk MP3 player/recorder (my review is here). Generally this works very well, and I much prefer working with MP3 files than with stacks of little plastic disks that tend to disappear under piles of paper on the desk. So I load the file into Windows Media Player, open up Word, and switch between Word and WMP in order to control playback. At least, I used to do this. I've been meaning for ages to see whether I could easily create some keyboard shortcuts in Word to control the player. Today I spent half an hour on this, and it turns out to be very easy. I've set a reference to the Windows Media Player OCX, and made shortcuts for Open, Pause, Play, Go back a bit, Go forward a bit, and Go to position (this one opens an input box). Mind you, I still can't find the documentation for the OCX in the Media Player SDK; I'm using the little help strings in the VBA object browser. It's great, a big improvement over alt-tab. There are a few mysteries to solve when I get a moment. I've put the macros in Normal.dot; I think it may work better as a COM add-in since I want to keep a reference to the active media player object at the application level, not at the document level. Getting a bit more ambitious, it would be neat to display the current position in the status bar. And why stop at transcribing? Since I spend so much time in Word, how about some music playlists, paused at the touch of a key when the telephone rings? All in all, it reminds me how much I like VBA in Office. It's amazing how much a few quick macros can improve your productivity. Re: Automating Windows Media PlayerPosted 2060 days ago by Tim Anderson • • • Reply
Sure. I've uploaded the code here: Re: Automating Windows Media PlayerPosted 1818 days ago by Karen • • • Reply
Hi, Re: Automating Windows Media PlayerPosted 1818 days ago by Tim Anderson • • • ReplyKaren, you need to select Tools - Macro - Security in Word and change the setting to at least Medium. Alternatively, it should be possible to move the template to a trusted location to enable the macros - eg. your normal location for Word templates. You don't need to assign your own keystrokes. Re: Automating Windows Media PlayerPosted 853 days ago by Fran • • • Reply
I'm trying to use the VBA code for using Windows Media Player 11 while in Word 2003 in Vista to transcribe an Audio CD. I copied the code as a template and opened the template file, but the macros will not work. Is there an updated version of this code that I may use? Re: Automating Windows Media PlayerPosted 844 days ago by Tim Anderson • • • Reply
@Fran Re: Automating Windows Media PlayerPosted 2000 days ago by Guy Rondeau • • • ReplyCheck out vpedal.com for a footpedal that can be used while transcribing from audio files. Re: Automating Windows Media PlayerPosted 1973 days ago by Chris • • • ReplyIs there an ActiveX control I need to include with this? And where could I find that .ocx? Re: Automating Windows Media PlayerPosted 1887 days ago by Tim Anderson • • • ReplyChris, you don't need an ActiveX control as such, just install the latest Windows Media Player Re: Automating Windows Media PlayerPosted 1786 days ago by grawmet • • • Replyi was looking for a way to insert a pause in a macro. this is one of the first places i checked so i figured i'd ask you guys. is there a way to insert a pause in the word macros and if so, what is the code to perform this act? thanks. Re: Automating Windows Media PlayerPosted 1786 days ago by Tim Anderson • • • ReplyNot really the place for this ... but have a look at http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20843293.html which gives several ways to pause a VB application. Re: Automating Windows Media PlayerPosted 1597 days ago by tony • • • Reply
if you want to find some Automating Windows Media Player Re: Automating Windows Media PlayerPosted 1571 days ago by govardhan • • • Reply
HELLO, Re: Automating Windows Media PlayerPosted 988 days ago by Allegra • • www • ReplyI want to run windows macros across several applications including windows media player and excel... does anyone know any good software for doing this Re: Automating Windows Media PlayerPosted 787 days ago by Jonathan Melvin • • www • Reply
We are involved in a granted-funded research project at the Regional Research Institute. We have a large amount of video data we need to “code,” i.e. noting events that happened in the video (did youth show initiative, did youth respond to a question, etc). Re: Automating Windows Media PlayerPosted 781 days ago by Tim Anderson • • • Reply
Jonathan, Re: Automating Windows Media PlayerPosted 715 days ago by evan kelly - support @ vpedal • • www • Reply
We @ vpedal.com have a plugin that works with wmp9 > 11+ winamp / itunes / quicktime / realplayer / Re: Automating Windows Media PlayerPosted 49 days ago by Ethan Madison, Jr. • • www • Reply
you can try audacity too |
Recent postsUsers plead with Borland to give up .NETIE7 to be released 18th October,... If Microsoft doesn't use UAC, why... Google's unsettling lack of direction Vista security: now prove it |
Re: Automating Windows Media Player
Posted 2060 days ago by Phil • • • ReplyThat sounds interesting. Can you share the VBA code for the Word macro?