IAmChosen Posted September 5, 2012 Share Posted September 5, 2012 Hey guys, I have been searching and searching for the correct way to run a print program on a monitor on startup. I have tried shell.run() in many different ways, and none of them work. The cursor position way is way too tedious, I just want a simple way to run it on the top monitor. Any help? Link to comment Share on other sites More sharing options...
ZombieWarpig Posted September 5, 2012 Share Posted September 5, 2012 Just start it out as local mon = peripheral.wrap("top") Link to comment Share on other sites More sharing options...
disconsented Posted September 5, 2012 Share Posted September 5, 2012 shell.run(monitor PROGRAM) Link to comment Share on other sites More sharing options...
Jiggins Posted September 5, 2012 Share Posted September 5, 2012 Create a program called startup. local mon = peripheral.wrap(“top”) mon.clear() mon.setCursorPos(1,1) mon.write(“Random crap”) mon.setCursorPos(1,2) — line break, because the peripheral api does not have a print method. mon.write(“More random crap”) etc. Link to comment Share on other sites More sharing options...
MasterVentris Posted September 5, 2012 Share Posted September 5, 2012 startup file shell.run("monitor","top","<PROGRAM NAME>") Then make the program, inserting the location of the program instead of <PROGRAM NAME> Note that all 3 argument of shell.run need quotes around them. Link to comment Share on other sites More sharing options...
IAmChosen Posted September 5, 2012 Author Share Posted September 5, 2012 startup file shell.run("monitor","top","<PROGRAM NAME>") Then make the program, inserting the location of the program instead of <PROGRAM NAME> Note that all 3 argument of shell.run need quotes around them. Thanks so much! That worked! I just didn't know there had to be commas. Create a program called startup. local mon = peripheral.wrap(“top”) mon.clear() mon.setCursorPos(1,1) mon.write(“Random crap”) mon.setCursorPos(1,2) — line break, because the peripheral api does not have a print method. mon.write(“More random crap”) etc. Thanks, but I knew this method. It was just too tedious. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now