This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Kadecamz's profile picture

How do I make a program run on a monitor AND a computer at the same time?

Started by Kadecamz, 29 July 2012 - 12:28 AM
Kadecamz #1
Posted 29 July 2012 - 02:28 AM
This is the code



conventinal = ("1337")
heavy = ("2448")
print ("ENTER LAUNCH CODE FOR THE HEAVY OR CONVENTINAL MISSILES")
input = read()
if  input == conventinal then
rs.setOutput ("left", true)
elseif input == heavy then
rs.setOutput ("right", true)
end
print("Launching!")
sleep(5)
print("Action Completed (Assuming the code is correct)")
sleep(5)
os.shutdown()

I need someone to please edit it so it'll do what the title says.
Thanks!
Matrixmage #2
Posted 29 July 2012 - 02:34 AM
a monitor is just an extension of a computer, you use monitors to show something on a computer without going into the computer's UI

I don't remember the exact code for monitors or i would show you, sorry
Kadecamz #3
Posted 29 July 2012 - 02:36 AM
Ok, but how do I change my colors?
Matrixmage #4
Posted 29 July 2012 - 02:37 AM
the color of the text? its part of the monitors api, which I don't remember the code for, try the help program and seeing if it has anything about monitors
Graypup #5
Posted 29 July 2012 - 06:52 PM
I put something about the monitor API on the wiki, on the peripheral page. Just m = peripheral.wrap("side of monitor"), m.write(whatever)