← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #234633]: Want to run multiple test script

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
there are date and time modules in Python, that can be used.

the principal approach:

supposing script1 finishes before 4pm.

while True: 
    if <time is > 1pm>:
        import script1
        break
    wait(60) # check every minute

while True:
    if <time is > 4pm>:
        import script2 # will only run once 
        break # to terminate the loop
    wait(60) # check every minute

to implement the <...> expressions is your job ;-)

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