Jump to content




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


  • You cannot reply to this topic
4 replies to this topic

#1 Kadecamz

  • New Members
  • 113 posts

Posted 29 July 2012 - 01: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!

#2 Matrixmage

  • Members
  • 116 posts
  • LocationAt my Computer coding for the Computer in my Computer

Posted 29 July 2012 - 01: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

#3 Kadecamz

  • New Members
  • 113 posts

Posted 29 July 2012 - 01:36 AM

Ok, but how do I change my colors?

#4 Matrixmage

  • Members
  • 116 posts
  • LocationAt my Computer coding for the Computer in my Computer

Posted 29 July 2012 - 01: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

#5 Graypup

  • Members
  • 90 posts

Posted 29 July 2012 - 05: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)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users