Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to "CreateObject" of MediaPlayer ?

Status
Not open for further replies.

larryjr

Technical User
Aug 27, 2001
20
0
0
JP

How I can createobject of Microsoft MediaPlayer6.4 or 7
in *.vbs file ? ;

Set player = CreateObject("??????")
 
All u have to do is to search in your registry for "media player" as i did for default MediaPlayer and take a look at ProgID subkey to see "MediaPlayer.MediaPlayer.1" witch is the string that u use to create the object.
For media player 7.0 or 7.1 serach just for name "wmplayer.exe" and if u find one with a subkey named ProgID u find it and u could use his string to create the object.

Set player = CreateObject("MediaPlayer.MediaPlayer.1") ________
George, M
 

Thank you George,

I am glad to tell that I succeedeed to create it in my
script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top