Sign in to follow this  
Followers 0
testingtest

CD TRAY

30 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

If you're closing a series of drives, I believe the script (the computer?) will wait for the drive to close and report its status before proceeding. Not like closing them manually.

Share this post


Link to post
Share on other sites

well this script was suppose to lock my cd trays but seems it's not fast enough even if I tell it what tray to not open

Share this post


Link to post
Share on other sites

"Lock" your cd trays? It's just going to close your trays once they're opened.

Share this post


Link to post
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?

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I can use concrete to fill the hole

I got a moneysafe to my computer and an UPS...

The CDs I memorized so i remember all the 1's and 0's :whistle:


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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

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

"...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." -Mozart_ONLINECheck out this free 1 GB FTP website at DriveHQ.com. You can control the users and even publish a website for free!![s]Your-Start.com - A online website that you can customize to hold all you links, news information, and other website info.[/s]

Share this post


Link to post
Share on other sites

Have you even tested this - http://www.cdrom-lock.de/index_en.html ???

nope. I don't want to download one I feel like making one it's nice when you can say to family or friends that you made something.

Ill keep trying thanks for all the help and replys guys :whistle:

Share this post


Link to post
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:


"...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." -Mozart_ONLINECheck out this free 1 GB FTP website at DriveHQ.com. You can control the users and even publish a website for free!![s]Your-Start.com - A online website that you can customize to hold all you links, news information, and other website info.[/s]

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Have you even tested this - http://www.cdrom-lock.de/index_en.html ???

Yep, I`ve used that to Unlock my CD tray, when the software won`t release it, but it would still be nice to be able to do it with a script. :whistle:


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
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
Sign in to follow this  
Followers 0