Posted 03 April 2012 - 10:27 PM
I have been trying for a while now to creat a program so that when a disk is inserted into a disk drive and the computer is turned on, it opens a door, ejects the disk, closes the door, then shuts it's self off. I have gotten the computer to open and close the door, just not eject the disk and turn it's self off. Any suggestions? I have this running as the startup program since thats the only thing this computer will be doing.
Here's what I got so far:
rs.setOutput("back", true)
eject
sleep(5)
rs.setOutput("back", false)
os.shutdown
end
I am pretty sure that eject and os.shutdown are the wrong things but thats all I could find.
I would really appreciate any help here on this.
Here's what I got so far:
rs.setOutput("back", true)
eject
sleep(5)
rs.setOutput("back", false)
os.shutdown
end
I am pretty sure that eject and os.shutdown are the wrong things but thats all I could find.
I would really appreciate any help here on this.