← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #257717]: Conditions at the time

 

Question #257717 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/257717

    Status: Answered => Open

fordox is still having a problem:
Thanks Raiman, but in my task you want to apply the condition: script
should determine the current date and time based on the PC and do
certain actions.

while true:
    if today Tuesday:
        if time now between 13:00 and 14:00:
            #do some action.
        if time now between 02:00 and 03:00:
            #do some action.
    if today Sunday:
        if time now between 00:00 and 01:00:
            #do some action.
        if time now between 17:00 and 18:00:
            #do some action.
    continue

etc.
how to do such a thing? I get out of sync time

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.