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

using programs with programs

Started by xcraft12, 11 August 2012 - 11:53 PM
xcraft12 #1
Posted 12 August 2012 - 01:53 AM
so heres what i want to know so i have several programs each for and individual color so if i type cyan the cyan light turns on but what i want to do is put them together to so it turns on cyan sleeps(1) then turns on magenta any ideas?
cant_delete_account #2
Posted 12 August 2012 - 01:56 AM
Use:

shell.run("program")
Pharap #3
Posted 12 August 2012 - 11:08 AM
Or you could separate them up into different functions within the same program, which would be more compact and easy to keep track of.