How do I make it so when I run break my desktop program will run instead of the screen being black?
Please help (=
0
How do I make the "break" command go back to my desktop?
Started by MarcoPolo0306, Apr 22 2017 08:07 PM
5 replies to this topic
#1
Posted 22 April 2017 - 08:07 PM
#2
Posted 23 April 2017 - 12:44 AM
"break" from where?
#3
Posted 23 April 2017 - 12: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.
#5
Posted 23 April 2017 - 06:32 PM
MarcoPolo0306, on 23 April 2017 - 12:52 PM, said:
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.
#6
Posted 23 April 2017 - 09: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 by houseofkraft, 23 April 2017 - 09:04 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users