I need to open and close CD door using same command button. If cd door is close then eject it else close it. Like in Windows CD Player. Any ideas.
I know how to open or close the cd door but how do I check whether it is open or close?

Thanks,
Simon