Magic CD Tray

11,608

14

15

Introduction: 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!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Get the Tools!

First get Autoit at http://www.autoitscript.com/autoit3/ It is the programing language you will use to make the magic CD Tray!

Step 2: Enter the Code

CDTray("D:/","open")
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)
sleep(500)
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)
sleep(5000)
MsgBox(0,"Info","The CD drive is now open! Closing in 5 seconds of this message closing",900)
Sleep(5000)
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)
sleep(500)
SoundPlay("C:\WINDOWS\Media\Windows XP Battery Low.wav",0)
sleep(3000)
CDTray("D:\","closed")

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

Step 3: 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!

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • First Time Author Contest

      First Time Author Contest

    15 Discussions

    0
    MasterMediaXD
    MasterMediaXD

    11 years ago on Introduction

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

    0
    Christopher-J
    Christopher-J

    11 years ago on Introduction

    @ 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...

    0
    Uru Wolf
    Uru Wolf

    12 years ago on Introduction

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

    0
    GoSox2525
    GoSox2525

    12 years ago on Step 1

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

    0
    TheInventor
    TheInventor

    12 years ago on Introduction

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

    0
    blckpythn
    blckpythn

    12 years ago on Introduction

    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

    0
    sniper120
    sniper120

    Reply 12 years ago on Introduction

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

    0
    sniper120
    sniper120

    Reply 12 years ago on Introduction

    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)

    0
    zachninme
    zachninme

    12 years ago on Introduction

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

    0
    sniper120
    sniper120

    Reply 12 years ago on Introduction

    I know that exists but my method is way cooler!