dll that controls cdrom eject

I

iNFERN0

Guest
well my simple problem. is my box is 2-3 meters away from my desk/moniter and everytime i wanna change a cdrom i don't like having to get up off my ass to hit the button......

and i hate having to go to my computer and right clicking on "eject" on my cdrom.

so i was wondering if anyone knew the dll or exe that controls the ejecting and also what varibles are needed too.


ie blablah.dll-cdrom_eject_crap_here

i wanna make a shortcut out of it then assign it a shortcut key.
 
K

kruger

Guest
Hi, I think I got a tool for your problem.
I wrote a program some time ago that solves the problem.
I've only tried it out in win98/NT/2000 but I think it will run in XP too.
File attached "cdtools.zip"


Regards


:DKruger:D
 
M

Moonacres

Guest
Interesting though because you will still have to get up to change the CD would you not? :confused:
 
I

iNFERN0

Guest
i don't have to move that far to get the cd compared to reaching for the button.

also i can click the eject command on my puter just be4 i reach to get the cd and by the time i get there the cdrom drive will be open (u know how it has that annoying delay that insures the cd has stopped spinning)
 
M

Moonacres

Guest
I tried that tool that Kruger wrote and it works beautifully. If you have not tried it yet you should as it might be what you are looking for.

Kruger, nice job.
 
K

kruger

Guest
Hi, thanx for trying my app...

Wrote it after I was tired of doing the eject of my Cd drive manually.
I also think it's nice that it stays in the systray untill U need it
Icon is stolen from CloneCD (Sorry Olli)
Program written in O'Basic, nice script program that can be found at hxxp://www.obasic.com


:D Kruger :D
 

Lonman

Bleh!
Joined
2 Dec 2001
Messages
2,642
Kool tool Kruger. Can I set it up to open more then 1 drive?
 
I

iNFERN0

Guest
Originally posted by kruger
Hi, thanx for trying my app...

Wrote it after I was tired of doing the eject of my Cd drive manually.
I also think it's nice that it stays in the systray untill U need it
Icon is stolen from CloneCD (Sorry Olli)
Program written in O'Basic, nice script program that can be found at hxxp://www.obasic.com


:D Kruger :D

the program is great but it doesn't work if your cdrom drive isn't assigned to what u have it programed as.

could you possibly post how it ejects the cdrom? its gotta obviously use some sort of dll or something

cuz then i can make a shortcut using that and assign it a shortcut key
 
K

kruger

Guest
Hi, first to Loneman: the code can't eject anything else than the cd drive that are default!
I do not know the code for choosing what drive to use, but I can try to get it from someone that got the knowledge.

The code I got can not help you to create a shortcut to do this!

Regards

:D Kruger :D
 
K

kruger

Guest
Visual Basic Script!

Hi, found a Visual Basic script for ejecting the cdrom door
It calls for the dll file winmm.dll

Script below:

****
Option Explicit

Public Declare Function mciSendString Lib "winmm.dll" _
Alias "mciSendStringA" _
(ByVal lpstrCommand As String, _
ByVal lpstrReturnString As String, _
ByVal uReturnLength As Long, _
ByVal hwndCallback As Long) As Long


Private Sub Command1_Click()

Call mciSendString("Set CDAudio Door Open Wait", 0&, 0&, 0&)

End Sub
'--end block--'

****


Regards


:D Kruger :D
 

Members online

No members online now.

Latest profile posts

Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,007
Messages
673,466
Members
5,598
Latest member
Larry Chris