-->
Page 1 of 2

returngui does not display

PostPosted: Sun Sep 18, 2016 7:16 am
by raintime
I want to print "starting..." immediately, but for example the code below does not print "starting..." until after the delay:

memclear
print "starting..."
returngui
delay 5000
end

Re: returngui does not display

PostPosted: Sun Sep 18, 2016 7:37 am
by Mmiscool
When hitting the run button it takes a moment or 2 for the web sockets in the browser to connect. This unfortunately is unavoidable.

Re: returngui does not display

PostPosted: Sun Sep 18, 2016 11:26 am
by raintime
Mmiscool wrote:When hitting the run button it takes a moment or 2 for the web sockets in the browser to connect. This unfortunately is unavoidable.


If instead of Returngui, I add a few lines as shown below, everything works great because the the web sockets get connected.

Is there a way to make the "returngui" command emulate this little block of code? Would be very useful!

print "Starting..."

timer 3000,[mybranch]
wait
[mybranch]
timer 0

delay 5000 'or anything...
end

Re: returngui does not display

PostPosted: Sun Sep 18, 2016 11:36 am
by raintime
Mmiscool wrote:When hitting the run button it takes a moment or 2 for the web sockets in the browser to connect. This unfortunately is unavoidable.



I just tested this block of code (below) at the very beginning of the program, and that also works great. I would be totally willing to wait a few extra seconds after pressing the RUN button for the web sockets to connect before the program actually starts.


timer 2000,[mybranch]
wait
[mybranch]
timer 0