Hi,
is it possible to eject cd-roms without any special tools?
Tekl
Eject a cd-rom
Started by
Tekl
, Sep 01 2004 09:40 PM
30 replies to this topic
#1
-
Posted 01 September 2004 - 09:40 PM
There's nothing built-in yet, but if it's easy to adapt the code from AutoIt I'll try to get it done soon.
#4
-
Posted 02 September 2004 - 01:40 AM
In the mean time I suppose you could use this little command line tool.
It also lets you clsoe the tray.
Command line tools are convenient for extending the capabilities of ahk .
It also lets you clsoe the tray.
Command line tools are convenient for extending the capabilities of ahk .
#6
-
Posted 02 September 2004 - 02:16 PM
Thanks, but I already have tool for that, but I thought it could be possible directly within AHK.
Tekl
Tekl
#7
-
Posted 02 September 2004 - 02:53 PM
Hi,
are there any news about implementing media-eject? The link above does not work. Is it maybe possible with postmessage?
Tekl
are there any news about implementing media-eject? The link above does not work. Is it maybe possible with postmessage?
Tekl
#8
-
Posted 18 October 2004 - 07:46 AM
Thanks, I'll try to get this into the next release.
#9
-
Posted 18 October 2004 - 12:11 PM
Would it be possible to make it eject a CD-RW? With a
CD-ROM, you can push the button on the machine, with a RW, you have to
r-click on the icon, select Eject. A hotkry would be nice.
Thanx
Don
CD-ROM, you can push the button on the machine, with a RW, you have to
r-click on the icon, select Eject. A hotkry would be nice.
Thanx
Don
#10
-
Posted 18 October 2004 - 03:43 PM
This was overdue so has been added to the installer at http://www.autohotkey.com/download/
The syntax is:
Drive, Eject ; eject the default drive
Drive, Eject,, 1 ; retract the default drive
Drive, Eject, E: [, 1] ; eject/retract a named drive
The syntax is:
Drive, Eject ; eject the default drive
Drive, Eject,, 1 ; retract the default drive
Drive, Eject, E: [, 1] ; eject/retract a named drive
I think it should work on all types of CD and DVD drives that can play music CDs.Would it be possible to make it eject a CD-RW?
#11
-
Posted 18 October 2004 - 06:54 PM
Thanks Chris,
is it possible to get the status if a drive is open or close? I want a key which opens the drive and the I want to close the drive with the same key.
Tekl
is it possible to get the status if a drive is open or close? I want a key which opens the drive and the I want to close the drive with the same key.
Tekl
#12
-
Posted 18 October 2004 - 09:19 PM
Yes, I should probably add that for completeness. Thanks; it should be done soon.
#13
-
Posted 19 October 2004 - 12:28 AM
Thanks, Chris-
Just tested it on a R/W, and it DOES work!!
Don
Just tested it on a R/W, and it DOES work!!
Don
#14
-
Posted 19 October 2004 - 12:47 AM
You can open or close using only one hotkey with this code:
The variable A_TimeSinceThisHotkey in my case is always > 1000ms if the script must change "drive state".
I was using a commandline tool ,this way is much better!Thanks Chris.
^#0:: Drive, Eject,, If ErrorLevel = 0 ;just in case If A_TimeSinceThisHotkey < 1000 , Drive, Eject,, 1 Return
The variable A_TimeSinceThisHotkey in my case is always > 1000ms if the script must change "drive state".
I was using a commandline tool ,this way is much better!Thanks Chris.
#15
-
Posted 19 October 2004 - 04:18 AM