Code: Select all
;
; by Pille - 17.07.2003
;
; If you want to change the Drive you can do it like this:
; mciSendString_("Open K: Alias DriveK Type CDAudio", 0, 0, 0)
; mciSendString_("Set DriveK Door Open", 0, 0, 0)
; mciSendString_("Set DriveK Door Closed", 0, 0, 0)
Procedure openCdDoor()
mciExecute_("Set CDaudio Door Open")
EndProcedure
Procedure closeCdDoor()
mciExecute_("Set CDaudio Door Closed")
EndProcedure
;-----------------------------------------
; test
;
openCdDoor() ;open Cd door
delay(2000) ;wait 2s
closeCdDoor() ;close Cd door
[edit]
*g* I haven't noticed that Rings already wrote something about opening&closing the Cd door... but he made it it a very funny way - check this out viewtopic.php?p=12824
[edit2]
I got a response from 'wichtel' in the german forum that it's a lot easier to do it with the build in PB function:
cd=InitCDAudio()
UseCDAudio(cd)
EjectCDAudio(1)
EjectCDAudio(0)
I could bet that someone changed my PB help while I was searching the MSDN 'cause I didn't find anything about CD handling in the manual
