Is there a way to open the CD tray from Ver.3?
Professional Software Development Tools
Is there a way to open the CD tray from Ver.3?
Personally, I use Index Finger 2.0...
Where can I get it?
check your Right hand [img]/ubbthreads/images/icons/wink.gif[/img]
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
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%
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...s/ShowCode.htm
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
143
0
0
1
2
0
winmm.dll
mciSendStringA
"Set CDAudio Door Open",0,0
1
1
%DLLResult%
Thanks Derek!
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.
It should if yu call the function at Project-OnClose
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...