Introduction: Magic CD Tray

Picture of Magic CD Tray

Are you to lazy open and close to CD tray? Well this is the script for you! The script will open and close
the CD Tray for you!

Step 1: Get the Tools!

Picture of Get the Tools!

First get Autoit at It is the programing language you will use to make the magic CD Tray!

Step 2: Enter the Code

Picture of Enter the Code
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)
MsgBox(0,"Info","The CD drive is now open! Closing in 5 seconds of this message closing",900)
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)

  • Where you see (D:/ or D:\) Chage it to your CD drive Letter eg.(Y:\)

Step 3: Compile

Picture of Compile

Now compile the script useing the compile function when you left click the Script!

Step 4: Finish!

Now you can sit back and run the script put the CD in and the CD will load!


Yerboogieman (author)2009-03-06

I just use Coffee Cup Holder, lol.

MasterMediaXD (author)2008-10-11

Please Reply Sniper120!!! PLEASE MAKE MORE THINGS LIKE THIS!!!! I've even subscribed

Christopher-J (author)2008-07-20

@ firemanfu @ zachninme Pressing one key on the keyboard or right-clicking the mouse both take too much time, energy, thought and trouble. That is why sniper120 made this Instructable. And kudos to him! Anyhoo...

Uru Wolf (author)2008-05-21

This is cool. I can assign it to a macro on my keyboard XD

GoSox2525 (author)2008-02-09

it says that link is out of date, wat is the exact name of the autoit program

GoSox2525 (author)sniper1202008-02-16


TheInventor (author)2008-02-14

That's pretty cool, but thats being really lazy. I give it a plus though.

GoSox2525 (author)2008-02-09

it worked!

blckpythn (author)2007-10-07

i just tried it out and it works great i think ill have some fun with this by the way what i did was i chose to append all .au3 files with autoit then i opened notepad pasted the above mentioned code and saved it as CDtray.au3

sniper120 (author)blckpythn2007-12-17

yes, that is way easier than compiling! Some noobs will find it easier to just compile it.

firemanfu (author)2007-09-08

on macs theres just a key on the key board

sniper120 (author)firemanfu2007-12-17

This ONLY works on PCs. Yes I know their is that button, but why make a instructable only for a small amount of viewers?(2,090+ Last time I checked)

zachninme (author)2007-09-08

Why don't you just do Right-click>Eject. That works in more than just Windows, and doesn't require instillation of anything.

sniper120 (author)zachninme2007-12-17

I know that exists but my method is way cooler!

About This Instructable




More by sniper120:Custom XP - Visual Basic Scripting to Customize!Magic CD Tray
Add instructable to: