testingtest Posted February 21, 2007 Posted February 21, 2007 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
locomaestro Posted February 21, 2007 Posted February 21, 2007 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
xcal Posted February 21, 2007 Posted February 21, 2007 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. How To Ask Questions The Smart Way
testingtest Posted February 21, 2007 Author Posted February 21, 2007 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
therks Posted February 21, 2007 Posted February 21, 2007 "Lock" your cd trays? It's just going to close your trays once they're opened. My AutoIt Stuff | My Github
tAKTelapis Posted February 21, 2007 Posted February 21, 2007 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?
tAKTelapis Posted February 21, 2007 Posted February 21, 2007 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?
testingtest Posted February 21, 2007 Author Posted February 21, 2007 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.
Shevilie Posted February 21, 2007 Posted February 21, 2007 1 - to finish installing or burning to a cdWhy the hell should the cd popout under a burning / installation2 - to keep people from using my cds that I boughtWell I can use em on my laptop - dont need your computer 3 - to keep people from screwing my tray upI 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
Shevilie Posted February 21, 2007 Posted February 21, 2007 NOT TESTED - But I think this is your solution http://www.cdrom-lock.de/index_en.html Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
tAKTelapis Posted February 21, 2007 Posted February 21, 2007 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.
Shevilie Posted February 21, 2007 Posted February 21, 2007 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 Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
testingtest Posted February 22, 2007 Author Posted February 22, 2007 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
momitty Posted February 22, 2007 Posted February 22, 2007 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.
i386 Posted February 22, 2007 Posted February 22, 2007 (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 hardwaredirectly and not just the software and it will lock the drives close,as well as open I believe. Plus, there was some other neat optionsas well.Guys,Another reason why you may want to lock your CD drives is if you areinstalling software off a CD in that drive and you don't want that driveto open if you accidentally bump into the eject button. Or if you havea CD with a bunch of scripts on it and you don't want to use that drivefor nothing but that CD with scripts on it. It just depends on what yourpreferences are. Lots of Network Administrators like to lock the drivesso other people can't install anything on that computer at all unlessthey have the script to open the drive or a password for the activescript to unlock it. Edited February 22, 2007 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
Shevilie Posted February 22, 2007 Posted February 22, 2007 Have you even tested this - http://www.cdrom-lock.de/index_en.html ??? Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
testingtest Posted February 22, 2007 Author Posted February 22, 2007 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
i386 Posted February 22, 2007 Posted February 22, 2007 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!!" 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
testingtest Posted February 22, 2007 Author Posted February 22, 2007 I know the feeling of creating something of your own accord and thenbragging about it to everyone in site, But, sometimes third party-softwareis the easiest way to go cause that just means that someone else alreadydid it and now you just have to find someway to implement it all into yourscript or program (which is the easiest way to do things).But, if you have the time and the energy, then by all means, hack awayat it and do your damnedest to script or write it yourself and then puff upstick your chest out and say..."I made that!!" I am not one to brag, but if they ask me were I got it I can say I made it.
Lakes Posted February 22, 2007 Posted February 22, 2007 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. 2015 - Still no flying cars, instead blankets with sleeves.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now