Jump to content

CD TRAY


Recommended Posts

Hi , I was wondering is autoit to slow or is it just me

CODE

$var = DriveGetDrive ("CDROM")

If @error Then Exit

While 1

For $i = 1 to $var[0]

CDTray($var[$i], "close" )

Next

WEnd

maybe you dont see anything because you need to open your drives first before closing them thats might be why you dont see anything
Link to comment
Share on other sites

I assume the idea was by continually looping it in the closed position, it would prevent the drive from opening.. much the same as replacing the tray open with the command to kill notepad.exe, it would certainly prevent anyone having notepad running for a useful amount of time.

Unfortuneately, the drive status has to be reported by hardware to the software, which means windows wont know it is open until it is fully open (AFAIK)

why would you want to "lock" your CD tray anyways?

Link to comment
Share on other sites

I assume the idea was by continually looping it in the closed position, it would prevent the drive from opening.. much the same as replacing the tray open with the command to kill notepad.exe, it would certainly prevent anyone having notepad running for a useful amount of time.

Unfortuneately, the drive status has to be reported by hardware to the software, which means windows wont know it is open until it is fully open (AFAIK)

why would you want to "lock" your CD tray anyways?

Link to comment
Share on other sites

I have a lot of legit reasons for locking my cd trays.

1 - to finish installing or burning to a cd

2 - to keep people from using my cds that I bought

3 - to keep people from screwing my tray up

so does anybody know a proper way of doing this. I think I have to tell it to find all my cd drives and then tell it to wait until they are open or even before then tell it to close.

Link to comment
Share on other sites

1 - to finish installing or burning to a cd

Why the hell should the cd popout under a burning / installation

2 - to keep people from using my cds that I bought

Well I can use em on my laptop - dont need your computer :whistle:

3 - to keep people from screwing my tray up

I can deffently do that without the need of open it :)

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Link to comment
Share on other sites

Ever noticed that little hole in the front of the drive?

well.. you straighten out a paperclip (or get a cake tester from the kitched draw if you have one small enough) and poke it in there just right, and it pushes on a catch which will manually release the drive.. i can shutdown your computer to prevent the program from running.. and i can then manually steal your CDs !!!

There is a way around everything.. poking holes in flawed plans is a hobby of mine.

Link to comment
Share on other sites

Ever noticed that little hole in the front of the drive?

well.. you straighten out a paperclip (or get a cake tester from the kitched draw if you have one small enough) and poke it in there just right, and it pushes on a catch which will manually release the drive.. i can shutdown your computer to prevent the program from running.. and i can then manually steal your CDs !!!

There is a way around everything.. poking holes in flawed plans is a hobby of mine.

nope still don't see the hole in my cd drive. I would love more info on it or a picture would be awsome.

I was also hoping I could do this cd tray lock thing as a project, I must of did it incorrectly

Link to comment
Share on other sites

I have a great reason for wanting to lock my CD closed.... I have a 2 year old toddler who is curious about any button. This includes my CD button, the power button and the reset button. If my drive isn't popping open my PC is closing while I'm working on something.... then I look over to see a grinning little rugrat. Kids... you can't beat them...legally. Best I can do is try to make the computer help me out a little.

Link to comment
Share on other sites

I know the feeling with the toddler thing...

My 15 month old son does the same thing.

Try searching the forums for "DriveLock" or"CD Drive".

Someone came up with a script that communicates with the hardware

directly and not just the software and it will lock the drives close,

as well as open I believe. Plus, there was some other neat options

as well.

Guys,

Another reason why you may want to lock your CD drives is if you are

installing software off a CD in that drive and you don't want that drive

to open if you accidentally bump into the eject button. Or if you have

a CD with a bunch of scripts on it and you don't want to use that drive

for nothing but that CD with scripts on it. It just depends on what your

preferences are. Lots of Network Administrators like to lock the drives

so other people can't install anything on that computer at all unless

they have the script to open the drive or a password for the active

script to unlock it.

Edited by terrabyte
Spoiler

 

"...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor

"Mess with the best, die like the rest!!" -Hackers

"This above all to thine own self be true." -William Shakespeare

"Corruption is only as corrupted as the individual makes it out to be." -i386

 

style7,AutoIt.png

 

 

Link to comment
Share on other sites

I know the feeling of creating something of your own accord and then

bragging about it to everyone in site, But, sometimes third party-software

is the easiest way to go cause that just means that someone else already

did it and now you just have to find someway to implement it all into your

script or program (which is the easiest way to do things).

But, if you have the time and the energy, then by all means, hack away

at it and do your damnedest to script or write it yourself and then puff up

stick your chest out and say..."I made that!!" :whistle:

Spoiler

 

"...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor

"Mess with the best, die like the rest!!" -Hackers

"This above all to thine own self be true." -William Shakespeare

"Corruption is only as corrupted as the individual makes it out to be." -i386

 

style7,AutoIt.png

 

 

Link to comment
Share on other sites

I know the feeling of creating something of your own accord and then

bragging about it to everyone in site, But, sometimes third party-software

is the easiest way to go cause that just means that someone else already

did it and now you just have to find someway to implement it all into your

script or program (which is the easiest way to do things).

But, if you have the time and the energy, then by all means, hack away

at it and do your damnedest to script or write it yourself and then puff up

stick your chest out and say..."I made that!!" :whistle:

I am not one to brag, but if they ask me were I got it I can say I made it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...