object to open/close CD
from
WinCustomize Forums
I'm looking for how make an object to open/close CD
Thanks
Thanks
Stardock will be closed starting on November 26th and we will be returning November 30th. We will be monitoring support tickets and forums but expect delays in responses during this time.
'****** OPEN CD TRAY ****** Dim oWMP Dim colCDROMs, i Set oWMP = CreateObject("WMPlayer.OCX.7") Set colCDROMs = oWMP.cdromCollection if colCDROMs.Count >= 1 then For i = 0 to colCDROMs.Count - 1 colCDROMs.Item(i).Eject Next End If oWMP.close Set colCDROMs = Nothing Set oWMP = Nothing '****** OPEN & CLOSE CD TRAY ****** Dim oWMP Dim colCDROMs, i Set oWMP = CreateObject("WMPlayer.OCX.7") Set colCDROMs = oWMP.cdromCollection if colCDROMs.Count >= 1 then For i = 0 to colCDROMs.Count - 1 colCDROMs.Item(i).Eject Next For i = 0 to colCDROMs.Count - 1 colCDROMs.Item(i).Eject Next End If oWMP.close Set colCDROMs = Nothing Set oWMP = Nothing |
Welcome Guest! Please take the time to register with us.
Select a reason for giving karma:
You're about to visit an external site:
Sign up here to get the latest news, updates, and special offers delivered directly to your inbox.