← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663952]: program agains relative time

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
just an example using seconds

waitUntilStart = time.time()
def waitUntil(nextTime):
     global waitUntilStart
     until = waitUntilStart + nextTime
     while time.time() < until:
         wait(0.1) # the granularity
     waitUntilStart = time.time()

waitUntilStart = time.time()
waitUntil(2.0); click();
waitUntil(2.8); click();
waitUntil(4.8); click();

... but are you aware of the feature guide (use SikuliX version 1.1.2).
It allows some interaction, but is not well documented (you have to look into code, to get feeling about the features.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.