Magic CD Tray

by sniper120 in Workshop > Science

11897 Views, 14 Favorites, 0 Comments

Magic CD Tray

objects00008g.jpg
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!

Get the Tools!

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

Enter the Code

untitled.bmp
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:\)

Compile

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

Finish!

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