PDA

View Full Version : CD Tray



Bruce
07-18-2002, 09:45 AM
Is there a way to open the CD tray from Ver.3?

Ted
07-18-2002, 08:40 PM
Personally, I use Index Finger 2.0...

Bruce
07-18-2002, 09:20 PM
Where can I get it?

Adam
07-19-2002, 09:19 AM
check your Right hand /ubbthreads/images/icons/wink.gif

hopehc
07-19-2002, 10:32 AM
LOL!! http://www.fireworksdesign.net/download/roflmao.gif

Bruce
07-19-2002, 05:33 PM
I otta shave those sideburns! ;-) ( you got me!) What I'm trying to do is this:
I've setup a 30 day trial period so that after the 30 days the CD will continue to get spit out of the tray. Now, kindly stick your finger on the keyboard and help me out. :-)

Bruce

cchian
07-19-2002, 06:20 PM
I have not tested this, but it should work. Visit http://www.cmdtools.com and download the file Eject.zip. To pass it the CD-ROM drive letter, you could use %SrcDrv%

unknown user
07-20-2002, 06:48 AM
Haw, hilarious... Rarely does one get a chance to see someone walk into something as cleanly as that, nice work boys.

But seriously, here you go dude, works like a charm. You can easily do this in Delphi, Visual C++, with a Director extra, or several other ways. But this VB one's pretty good and the code is free...

http://www.planet-source-code.com/xq/ASP/txtCodeId.30201/lngWId.1/qx/vb/scripts/ShowCode.htm

unknown user
07-20-2002, 12:12 PM
Sorry i cant help with v3 Bruce, i uninstalled it.
When you get a copy of v4 .. this CallDLLFunction will work ... just paste it into an apporpriate place

<IR_ACTIONS_LIST>
<Action name="Call DLL Function">
<Type>143</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>winmm.dll</FileName>
<FunctionName>mciSendStringA</FunctionName>
<FunctionParameters>"Set CDAudio Door Open",0,0</FunctionParameters>
<ReturnType>1</ReturnType>
<CallingConvention>1</CallingConvention>
<Variable>%DLLResult%</Variable>
</Action>
</IR_ACTIONS_LIST>

Bruce
07-20-2002, 12:56 PM
Thanks Derek!

cchian
07-20-2002, 01:40 PM
I don't know if it is possible to open the tray without problems by issuing the command from within the same CD you are trying to eject. Good luck.

unknown user
07-20-2002, 08:43 PM
It should if yu call the function at Project-OnClose

unknown user
07-21-2002, 08:30 AM
Here's a little .exe I just did with VB which will open the default CD Tray if you need a workaround for now:

http://www.indigorose.com/free/open.exe

Wouldn't be hard to pass the active drive letter to that .exe also you can get around the thing about the file running from the ejected CD simply by running it from a temp directory if need be, although I think it'll run from the CD...