function banner(text) { if (_applet) { set echo top center font echo 32 color echo gray echo @text } else { message driver: @{text} } } function delay2play(delaytime, defaultbanner) { if not delaytime { delaytime = 10 } if (_applet) { echo "Use mouse to rotate and zoom" } else { message driver: One hand to move, two to zoom } spinState = script("show state/spin"); spin off orientState == script("show moveto") original = orientState time = 5 while (time > 0) { delay 5 time = time - 5 if (script("show moveto") != orientState){ time = delaytime orientState == script("show moveto") } } banner(defaultbanner) script inline @original script inline @spinState }