|
Set timer
Sept 25, 2021 2:27:26 GMT
via mobile
Post by Glen on Sept 25, 2021 2:27:26 GMT
Is there a way to run the loop for example two hours then pauses after, that way if I am away I wouldn’t have to worry about shutting it down on time. Thanks
|
|
|
Set timer
Sept 30, 2021 20:54:56 GMT
via mobile
Post by philranger on Sept 30, 2021 20:54:56 GMT
Hello,
I’m sure there’s a way. I would ask this in the « Questions and help »’section though…
|
|
|
Post by Steve on Oct 3, 2021 0:02:57 GMT
Is there a way to run the loop for example two hours then pauses after, that way if I am away I wouldn’t have to worry about shutting it down on time. Thanks Hi Glen, For this I would use a loop based on the internal %time_macro% variable. Consider this example where I loop for 10 seconds based on the running macro time: 1 | RUN ACTION | DEFINE DECIMAL VARIABLE | %time_macro%::0 * | START 2 | IF | DECIMAL VARIABLE | %time_macro% | LESS THAN | 10 | THEN 3 | RUN ACTION | MESSAGE PROMPT | Looping for 10 seconds: (%time_macro%)::loop::1::OK 4 | RUN ACTION | GOTO MACRO LINE | START 5 | IF | ELSE 6 | RUN ACTION | MESSAGE PROMPT | Total time is %time_macro%::End of Loop::0::Information 7 | IF | END IF Hope this helps.
|
|