Jump to content

How to Use WMP to Rip CDs


Sticky
 Share

Recommended Posts

Hey guys,

I've done some work with COM objects when I used AutoIt to control iTunes, but all the interfacing had been researched and written already. Now I'd like to interface with the IWMPCdromRip Com Object from Windows Media Player 11 to rip CDs. I have been able to write a script that checks the drive status and then opens windows media player and clicks the rip tab and closes it upon eject but I want to do this directly through the COM Object. Is anyone willing to help teach me or show me how to use this COM Object?

Here's a direct link to get started on the object http://msdn.microsoft.com/en-us/library/bb262864(VS.85).aspx

By the way, I've tried this so far and it works:

$oWMP = ObjCreate('WMPlayer.OCX')
 If @error Then
    Msgbox (0,"Windows Media Player","Error Getting an active WMP 11 Object. Error code: " & Hex (@error, 8))
    Exit
EndIf

But none of these will work, the one with "::" has a parse error so tried a period instead as well:

MsgBox(4096, "Current Ripping Status", $oWMP.get_ripProgress)
MsgBox(4096, "Current Ripping Status", $oWMP.IDC_RIP_STATE)
MsgBox(4096, "Current Ripping Status", $oWMP.IWMPCdromRip::get_ripState)
MsgBox(4096, "Current Ripping Status", $oWMP.IWMPCdromRip.get_ripState)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...