Jump to content




Question? auto start


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

#1 DireEpidemic

  • New Members
  • 8 posts

Posted 24 July 2012 - 03:21 PM

Is there anyway to auto start a program without naming it startup?

#2 tfoote

  • New Members
  • 134 posts
  • LocationSalt Lake, UT

Posted 24 July 2012 - 03:47 PM

Yes. create this... (the program is to be named startup)
shell.run("your program") -- replace your program


#3 DireEpidemic

  • New Members
  • 8 posts

Posted 24 July 2012 - 03:51 PM

Thank you :)/>

#4 DireEpidemic

  • New Members
  • 8 posts

Posted 25 July 2012 - 10:49 AM

Is there a way to put this into the code i need to auto start if i have more than one program, or will i just have to list the code over and over again calling the different programs files in the startup?

#5 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 25 July 2012 - 04:35 PM

you could make a folder named "autostart" or similar, and make your startup program run every file inside

#6 tfoote

  • New Members
  • 134 posts
  • LocationSalt Lake, UT

Posted 25 July 2012 - 04:45 PM

Also you can do this...
function program1()
--Put all the code of program 1 into here
-- I havent experimented with using the shell.run() in here but you could try
end
function program2()
--same as above. but program 2
end
parallell.waitForAny(program1(), program2()) -- you can also use parallell.waitForAll(same)

Hope this helped

#7 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

Posted 24 February 2014 - 05:36 AM

View Posttfoote, on 24 July 2012 - 03:47 PM, said:

Yes. create this... (the program is to be named startup)
shell.run("your program") -- replace your program

Thanks, that worked excellently for me!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users