sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36223
Re: [Question #280168]: Date.time triggering event regardless of time
Question #280168 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280168
Status: Open => Answered
RaiMan proposed the following answer:
the principle:
Banquetone = (datetime.datetime.today() +
datetime.timedelta(1)).replace(hour=16, minute=35, second=0)
while True: # some outer loop, that runs forever
if datetime.datetime.today() > Banquetone:
# do what is needed
Banquetone = (datetime.datetime.today() + datetime.timedelta(1)).replace(hour=16, minute=35, second=0)
# switch the time trigger to the next day
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.