As you all may know, there is no propper wait and loop function within Design Studio, however, there is a workarround for that.
First of all we create two Global Script Variables. One is our wait-go-variable, and the otherone is just for showing the output.
In the Part “On Background Processing” we enter this little script, which is basically and endless loop, as long as the variable is not changed:
With the help of two buttons we control the variable. If it is set to “wait”, the script begins to run, until you hit the button “go” – then the script stops, and the application will continue.
By click on “Loop Start” the endless-loop will start (and the textfield begins filling with “0”). By clicking “Loop End”, the script will end.