Hi,
I have been writing a few scripts using the documentation in Astroart.
There is something that I have not found in the documentation, I'd like to schedule an script execution at a certain time, for example, 4am.
Is this possible?
Best Regards.
Schedule an script execution at a certain time
Re: Schedule an script execution at a certain time
Hi,
it could be done with the function Time() or the function JD(), for example:
Instead of waiting for a given time, it can be more optimized to wait for a given altitude of the Sun. For example:
viewtopic.php?f=5&t=301
it could be done with the function Time() or the function JD(), for example:
Code: Select all
sub WaitTime(s)
while true
if Mid(Time(), 1, 5) = s then break
print Time() + " waiting..."
Pause(1)
Cls
end while
end sub
WaitTime("04 00")
viewtopic.php?f=5&t=301
Re: Schedule an script execution at a certain time
Thx a lot, that was very useful