topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 11:42 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: Eject!  (Read 19885 times)

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
DONE: Eject!
« on: March 04, 2006, 03:23 PM »
I created this script because it has happened to me lots of times forgetting a cd (dvd) inside the computer after shuting it down.
It's really anoying to have to be always turning the computer on again to get that cd.

But fear not, Eject! comes in salvation of those who suffer from the same bad as I do.
This script opens the cd tray right before shutdown if there is any cd inside!

I didn't make it open all cd trays because some people might have virtual drives, and that might have strange behaviours.
But on it's first run, it creates a ini file that can be edited to contain all the drives you want.
The attached compressed file has the executable, the ahk source and the example ini file.
Hope you like it.

(note: this script can easily be added to other ahk scripts you have running.)

.exe version: http://jgpaiva.dcmem...m/CS/Eject/Eject.exe
.ahk version: http://jgpaiva.dcmem...m/CS/eject/Eject.exe
« Last Edit: May 02, 2006, 04:43 PM by jgpaiva »

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,119
    • View Profile
    • Donate to Member
Re: Eject!
« Reply #1 on: March 04, 2006, 03:26 PM »
nice.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #2 on: March 19, 2006, 11:59 PM »
jgpaiva:
what about a script that eject/retracts the cd-tray on demand? it will be useful to some of us...

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #3 on: March 20, 2006, 02:44 AM »
jgpaiva:
what about a script that eject/retracts the cd-tray on demand? it will be useful to some of us...
I'm using AbsoluteControl for that task (I run it just when I need it, since I need it less than once a week):

This tool makes a wide range of OS control tools available with a single click. It can set your screen resolution to the highest possible refresh rate, open and close your CD drives, reboot, shutdown, power off, hibernate and send your system to standby mode.
A Web-search is available with a single click.

Get it from http://www.tucows.com/preview/231633

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #4 on: March 20, 2006, 03:56 AM »
I'm using AbsoluteControl for that task

People might like to know about Wizmo from Steve Gibson  http://www.grc.com / http://www.grc.com/s...egibson.htm#projects

Features:

• blackout
blackout monitors(s) while leaving them on.

• desktop
blank monitors(s) to the desktop color.

• blank
Activate system's screen blanker.

• autoblank=
Enable/Disable timed blanking.

• monoff
Power off system monitor(s).

• standby
Place the computer in standby mode.

• hibernate
Cause the computer to hibernate.

• logoff
Logs off the current user.

• exit
Exits from Windows.

• reboot
Exits then restarts Windows.

• open
Opens/ejects system's CDROM.

• open=
Open/eject specific drive.

• close
Closes system's CDROM.

• close=
Closes specific drive.

• volume=
Set system's audio volume (0-100).

• mute=
Enable or disable the system's audio.

• play=
Play the specified wave file.

• wave=
Set the wave volume only (0-100).

• shake=
Specify mouse sensitivity.

• quiet
Suppress Wizmo's action sound.

• graviton
Activate the built-in screen saver.

« Last Edit: March 20, 2006, 05:22 AM by brotherS »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #5 on: March 20, 2006, 04:58 AM »
I don't quite understand.. Why having a script for ejecting when you can right-click the icon at my computer?
Still, i could adapt this script to eject the cd.tray when the tray icon is clicked, or something like that.
But there are numerous utilities out there to do that, i think.
(can Wizmo do it for you?)

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #6 on: March 20, 2006, 05:21 AM »
I don't quite understand.. Why having a script for ejecting when you can right-click the icon at my computer?
The answer is in the post above :)

This tool [...] open and close your CD drives, [...]

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #7 on: March 20, 2006, 05:24 AM »
Ooops.. little twists of having a laptop. A laptop's drive cannot be closed by hardware, only by hand. I didn't know that didn't close the tray.
Well.. If there are interested parts, I can alter the script in some way to do that.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #8 on: March 20, 2006, 08:27 AM »
eject the cd.tray when the tray icon is clicked, or something like that.
But there are numerous utilities out there to do that, i think.
(can Wizmo do it for you?)

Yes, Wizmo can do that.


lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #9 on: March 20, 2006, 07:09 PM »
actually, i use command-line tool called Eject to open/close a CD-ROM drive... this is mainly for batch files & automated scripts but once in a while when i'm going thru several CDs, it will be nice to have an icon in the system-tray that opens/closes in a button-click.

no offense, brotherS but tools like AbsoluteControl add too much feature for their own good that it ends up as an overkill...

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #10 on: March 21, 2006, 01:38 AM »
no offense, brotherS but tools like AbsoluteControl add too much feature for their own good that it ends up as an overkill...
No offense taken :)

It just perfectly does what I (rarely) need, it's free and easy to use - I don't care about the other features I don't use.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #11 on: March 21, 2006, 08:05 PM »
It just perfectly does what I (rarely) need, it's free and easy to use - I don't care about the other features I don't use.

yes, i agree... i'm thinking of heading to AHK forum to check if anyone has a script on doing this. will post here if i find any... ;)

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE: Eject!
« Reply #12 on: March 24, 2006, 12:05 PM »
 :) Or you could modify my EjectCD script at https://www.donationcoder.com/Software/Skrommel/index.html.

Skrommel

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #13 on: March 24, 2006, 02:59 PM »
:) Or you could modify my EjectCD script at https://www.donationcoder.com/Software/Skrommel/index.html
EhEh Skrommel.. I knew i'd seen something like that somewhere... ;)

bit

  • Supporting Member
  • Joined in 2013
  • **
  • Posts: 686
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #14 on: June 22, 2014, 03:20 AM »
Is there an app that will work with Win 7 and give me a button in Systray to open/close my CD tray?
Either that, or give me open/close in my drop down menu for the CD drive?
Mine has open but not close.
« Last Edit: June 22, 2014, 04:38 AM by bit »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: DONE: Eject!
« Reply #15 on: June 22, 2014, 09:13 AM »
Is there an app that will work with Win 7 and give me a button in Systray to open/close my CD tray?
Either that, or give me open/close in my drop down menu for the CD drive?
Mine has open but not close.

It doesn't use a tray icon.  It uses a small window that remembers location when closed.  It has radio buttons for the detected optical drives.  Also the virtual drives I've tried it with, pressing Open is the same as Eject in the virtual drive.  You may download from Softpedia:
http://www.softpedia...ancements/Tray.shtml

It has both Open and Close Buttons.

Here's a screen shot




Edit:  I tried it in XP, Vista, W7 and W8.  On W8 I only have a Laptop so I can't test the close button.  But pressing open kicks the drive tray fine.