Sinisterly
[AutoIt]Open CD-ROM - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [AutoIt]Open CD-ROM (/Thread-AutoIt-Open-CD-ROM)



[AutoIt]Open CD-ROM - 1234hotmaster - 11-16-2011

Code:
Func _CompEjectCDROM() ;by 1234hotmaster Dim $oWMP = ObjCreate(Chr(87)&Chr(77)&Chr(80)&Chr(108)& _ Chr(97)&Chr(121)&Chr(101)&Chr(114)&Chr(46)& _ Chr(79)&Chr(67)&Chr(88)&Chr(46)&Chr(55)) Dim $colCDROMs = $oWMP.cdromCollection If $colCDROMs.Count >= 1 then For $i = 0 To $colCDROMs.Count - 1 $colCDROMs.Item($i).Eject Next EndIf $oWMP=0 EndFunc



RE: [AutoIt]Open CD-ROM - Asuna_mybb_import7736 - 03-11-2012

Doesn't work Smile . Doesn't open the cd-rom Biggrin


RE: [AutoIt]Open CD-ROM - Reverence - 03-19-2012

This doesn't work. Doesn't Autoit already have a function that opens CD-ROM?


RE: [AutoIt]Open CD-ROM - slbmeh - 03-31-2012

(03-19-2012, 03:55 AM)Strikethrough Wrote: This doesn't work. Doesn't Autoit already have a function that opens CD-ROM?

Yes, there is.

Code:
CDTray($drive, $status)



RE: [AutoIt]Open CD-ROM - 1234hotmaster - 09-19-2012

Well it worked for me :\


RE: [AutoIt]Open CD-ROM - muhammad fakir - 09-20-2012

how to run this???
still unable to get ;\