71 posts
Location
Everywhere and nowhere.
Posted 22 April 2017 - 09:07 PM
How do I make it so when I run break my desktop program will run instead of the screen being black?
Please help (=
7083 posts
Location
Tasmania (AU)
Posted 23 April 2017 - 01:44 AM
"break" from where?
797 posts
Posted 23 April 2017 - 01:40 PM
'break' stops early from a loop. It doesn't run programs. We'll need much more information about your setup to help though.
71 posts
Location
Everywhere and nowhere.
Posted 23 April 2017 - 01:52 PM
"break" from where?
Break from a program.
276 posts
Location
Fairbanks, Alaska
Posted 23 April 2017 - 07:32 PM
"break" from where?
Break from a program.
Break doesn't run anything, it pre-maturely cancels a while, for, or repeat loop. Unless you nested the entire operation inside of the desktop, you can't just "break" out into it. You have to run the desktop program again.
172 posts
Location
USA
Posted 23 April 2017 - 10:04 PM
It may be actually possible depending on what you're thinking of.
while true do
print("Whatever")
break
os.sleep(0)
end
shell.run("/path/to/desktop")
Edited on 23 April 2017 - 08:04 PM