Loop Command:

In SgneepBox-Script, loops are used to repeat a block of code until a countdown are finisched.

Run function in loop :

loop *id *seconds call *subscript

Exit/Close Loop:

close_loop *id

Sgneep-Box Script Example:

make_sub myimg
sub myimg photo_now 640x480 myphoto
# repeat the loop process(myimg) ,and restart each 30 seconds.
loop myloop 30 call myimg
# wait 10 min.
sleep 600

Powered by Sgneep.com