Jump to content
Sign in to follow this  
Guest SmugX

Determine if CD Tray is Open or Closed?

Recommended Posts

Guest SmugX

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

Share this post


Link to post
Share on other sites
Guest SmugX

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? :lmao:

Regards,

SmugX

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Guest SmugX

I believe that too.

Because there's no CD to be read, the drive is not ready.

<{POST_SNAPBACK}>

:lmao: Oh well. Thanks anyway.

If anyone thinks of anything, please let me know!

Thanks,

Neil.

Share this post


Link to post
Share on other sites

:lmao: 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 by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...