Set Loop

Each time the time set in the loop command is reached, the call to the function called up with CALL is executed.

Loop creates an infinite loop, but to stop the LOOP, use the close_loop command


loop [ID] [SECONDS] call [MAKESUB_ID]

close_loop [ID]


Sgneep-Box Script Example:

#disable reverseFTP mode
photo_now ftp disable

# subroutine function:
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

# close loop
close_loop
#....
#other script code
#....

Powered by Sgneep.com