Prev Previous Post   Next Post Next

Can I use and control Media Player from VB or VBA?

Posted: 08-25-2005, 10:19 PM
Hi all

I want to control the Windows Media Player version 10 from within an Office
XP application such as Microsoft Access or Microsoft Excel using Visual Basic
for Applications or directly from a stand-alone program written in Visual
Basic.

What I want to do is fancy stuff such as play from a locally created
playlist. Or copy or edit items in the Windows Media Player library database,
or clean-up the Windows Media Player database from help from another
application rather than searching, clicking, and manually editing the Windows
Media Player own proprietary database.

(For example, I had Media Player load all the MP3s I had in my MY MUSIC
folder. Then I moved that folder to another drive because of space
considerations. I re-loaded the new MY MUSIC folder. Now I have duplicate
entries for 500 songs in its library. Doing this de-duping by hand is a big
chore but I could write a script in Visual Basic to take care of this in no
time.)

I went to the www.microsoft.com website under Windows XP and found the
version 10 development kit. But it is written, explained, and all of it is
explained in the C language which whomever in Microsoft who uploaded this
information to the www.microsoft.come site seems to favor when they put this
stuff together. I'm not familiar with C in the least. I'm a hardcore Visual
Basic guy. (smile)

Does anyone know how I can control Windows Media Player functions and edit
its database under VB or VBA, or could point me in the right direction for
solutions?

Thanks!!

--
Rickster

Reply With Quote

Responses to "Can I use and control Media Player from VB or VBA?"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista Control Panel/Media Player Not Working nontakenname Windows Vista Performance & Maintenance 3 10-07-2008 08:13 AM
Help my videos wont play,only audio, on Windows media player or windows media player classic? Guest Windows NT/2000/XP 0 03-30-2008 05:52 PM
Installed DVD player and power dvd but wont play dvd in window media player 9 Brandon Peterson Windows XP Video 0 12-02-2003 10:40 AM
Media Player 'button' no longer works in media player 9 Windows XP Music 0 11-08-2003 01:05 AM
Media Player to control / play DV Camcorder Peter S Windows XP Video 0 10-26-2003 01:24 AM