Guest SmugX Posted March 2, 2005 Posted March 2, 2005 Hi all. I'm a newbie here, and I've had a brief play with AutoIt, which looks very useful. Anyway, a quick question: the 'CDTray' function looks useful for what I want to achieve, but is there a way of determining whether the cd tray is open or closed at the moment? I've had a look through the docs, but can't see anything. Any advice will be appreciated. Thanks, SmugX
MHz Posted March 2, 2005 Posted March 2, 2005 DriveStatus may help in determining if the drive is ready. Here is a sample of usage.
Guest SmugX Posted March 2, 2005 Posted March 2, 2005 Thanks, MHz - but, unless I'm missing something, your FindCD function uses DriveStatus on the drive. DriveStatus returns 'NOTREADY' if the drive is open, but also if the drive is empty - meaning I can't tell the difference between the two states. Am I making sense? Regards, SmugX
Andre Posted March 2, 2005 Posted March 2, 2005 Hi, as far as i know there is know way to see if the cd-drive is open. (no logic inside the drive). Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
SlimShady Posted March 2, 2005 Posted March 2, 2005 Hi,as far as i know there is know way to see if the cd-drive is open. (no logic inside the drive).Andre<{POST_SNAPBACK}>I believe that too.Because there's no CD to be read, the drive is not ready.
Guest SmugX Posted March 2, 2005 Posted March 2, 2005 I believe that too.Because there's no CD to be read, the drive is not ready.<{POST_SNAPBACK}> Oh well. Thanks anyway.If anyone thinks of anything, please let me know!Thanks,Neil.
Blue_Drache Posted March 2, 2005 Posted March 2, 2005 (edited) Oh well. Thanks anyway.If anyone thinks of anything, please let me know!Thanks,Neil.<{POST_SNAPBACK}>What will the eject function return if the drive's already open?Nevermind, it will always return a success if the drive isn't burn locked.I was thinking of the CDTray("drive","status") function Edited March 2, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
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