Jump to content




Floppy Autoboot to Monitor

help lua

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

#1 Matisori

  • New Members
  • 1 posts

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!

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 06 March 2014 - 03:58 PM

Moved to Ask a Pro.

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users