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

How to create a program? Help!?

Started by lewisholcombe, 13 January 2013 - 05:09 AM
lewisholcombe #1
Posted 13 January 2013 - 06:09 AM
Hey guys. So basically i want to make a program in ComupterCraft. Lets call this program "Film"
So i do - edit film - and it will take me to a blank page where i can make it do something. So i could do
print("Hello") and i save and exit then if i do film it will print Hello
But what i want to do is when i type Film i want it to run another command and i want that command to be
monitor back secret/alongtimeago
as this is for my servers cinema so it would run the movie on the big monitor on the back.
Yes i have tryed to do
print("monitor back secret/alongtimeago") and
write("monitor back secret/alongtimeago")
but i do it and it doesnt run the program it just shows me on the screen. HELP!?
Thanks all
Bullen #2
Posted 13 January 2013 - 06:13 AM
If you want the program to run you should use the shell.run command.
For example: shell.run("monitor", "back", "secret/alongtimeago")

And this belongs in the Ask a Pro part on this forum.
lewisholcombe #3
Posted 13 January 2013 - 06:29 AM
Thankyou soooo much! And i didnt relise so i will delete this topic but thankyou very much!