8 posts
Posted 24 July 2012 - 04:21 PM
Is there anyway to auto start a program without naming it startup?
134 posts
Location
Salt Lake, UT
Posted 24 July 2012 - 04:47 PM
Yes. create this… (the program is to be named startup)
shell.run("your program") -- replace your program
8 posts
Posted 24 July 2012 - 04:51 PM
Thank you :)/>/>
8 posts
Posted 25 July 2012 - 11: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?
510 posts
Posted 25 July 2012 - 05:35 PM
you could make a folder named "autostart" or similar, and make your startup program run every file inside
134 posts
Location
Salt Lake, UT
Posted 25 July 2012 - 05: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
16 posts
Location
United Kingdom
Posted 24 February 2014 - 05:36 AM
Yes. create this… (the program is to be named startup)
shell.run("your program") -- replace your program
Thanks, that worked excellently for me!