How to activate at a specific time every week?day

Asked by T

Is there a way, sikuli or python to get the script to loop until a certain time of day for monday-friday but not the weekdays, and not require a reset between these?

To continue my gym booking theme to see just how lazy I can be.

The classes are available to book online always at a specific time each day. Can i set it up on sunday to loop throughout the week, booking the classes every weekday and giving me a break at the weekend.

I'm not sure how well an if exists(picture of time in 24hr clock will work), but its my only choice unless there is a way of reading the clock.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Of course is it possible to program a timer inside the Sikuli script.

use the appropriate modules time and datetime (look at the Python docs).

for this purpose I would not use a timed exists() but a loop instead that makes the timing.

Another possibility would be to start the script with a system feature (at ....) at the specific time of day and then decide inside the script, whether something has to be done.

Can you help with this problem?

Provide an answer of your own, or ask T for more information if necessary.

To post a message you must log in.