You can also try this with scripting. It is always possible to access almost all underlying Windows functions/API via scripting so you don't need to download any third-party stuff.
I've found the relevant code here: superuser.com/a/972502 (see non-powershell example)
And I've tried to make an Opus button that opens all CD drives and it works.
Use this code in a button (make sure to set Script Function and jscript in "function" option for your button);
[code]var oSH = new ActiveXObject('Shell.Application'),
FSO = new ActiveXObject('Scripting.FileSystemObject'),
CDdriveType = 4,
ssfDRIVES = 17,
drives = new Enumerator(FSO.Drives);
while (!drives.atEnd()) {
var x = drives.item();
if (x.DriveType == CDdriveType) {
oSH.NameSpace(ssfDRIVES).ParseName(x.DriveLetter + ':').InvokeVerb('Eject');
while (x.IsReady)
WSH.Sleep(50);
}
drives.moveNext();
}
[/code]
This example opens all CD drives. It should be trivial for you to modify it so that it opens or closes tray of your desired drive(s).
Screenshot of button setup:
I've also attached the button as file if you need it (just remove .txt extension and drag & drop it on your Opus toolbar when in Customize mode).
Eject All CD drives.dcf.txt (1.16 KB)
