Posted 05 April 2014 - 01:36 AM
I am having difficulty with creating a program to run my movie theatre. My set up consists of either a lever or two buttons depending on which will work better, an advanced computer, a 6x8 advanced monitor to the right of the computer, and a disk drive on top. I am using computercraft 1.6 and using the treasyre floppy alongtimeago. What I want is to be able to have the floppy in the disk drive and to basically design a program that if I flip a lever or press a button it will initiate the movie on the monitor and if I flip the lever again or push another button it stops. I know the basic manual from the computer way is to input :
monitor right disk/alongtimeago
I have tried using bundled cables because its run from a control room setup that runs lights and that's kinda what I'm aiming to use. However I cannot get the code to work. I have tried the following example and it has not worked can someone guide me to solving this please and thank you.
while true do
local event = os.pullEvent("redstone")
local start=rs.testBundledInput("back",colors.orange)
if start then
shell.run "monitor right disk/alongtimeago"
else
shell.run "clear"
end
end