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

Floppy Autoboot to Monitor

Started by Matisori, 06 March 2014 - 01:05 PM
Matisori #1
Posted 06 March 2014 - 02:05 PM
First of, I am new to all this and am super excited at the possibilities. Pumped.

Not really a program per say, but what I have is a "program" that prints("") the numbers of each raw resource I need to gather in order to make a Medium Voltage Solar Panel. Already figured it out.. did the math. boom. Done with that. I put this "program" in the startup of a floppy disk so that when i put it in the computer and boot it up it comes up automatically.

For all you tl:dr people out there:

When the program boots off my floppy I want it to be output automatically to the monitor using code at the beginning of the program.

I know the commands (monitor left startup blah blah blah) but I dont want to do that. I want it to be as easy as putting in an nintendo cartridge. Hoping this is possible.

Thanks in advance!
Lyqyd #2
Posted 06 March 2014 - 03:58 PM
Moved to Ask a Pro.
Bomb Bloke #3
Posted 06 March 2014 - 04:05 PM
The really, really simple way is to make a startup script using shell.run(), along the lines of:

shell.run("monitor","left","myOtherScript","blah","blah","blah")

Ideally, you'll be using peripheral.getNames() and peripheral.getType() to automatically determine where (or even if) a monitor is present on any given computer.