sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45734
Re: [Question #663952]: program agains relative time --- a suggestion
Question #663952 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663952
Summary changed to:
program agains relative time --- a suggestion
Description changed to:
---- a simple solution based on seconds
waitUntilStart = time.time()
def waitUntil(nextTime):
global waitUntilStart
until = waitUntilStart + nextTime
while time.time() < until:
wait(0.1) # the granularity
waitUntilStart = time.time()
waitUntil(2.0); click();
waitUntil(2.8); click();
waitUntil(4.8); click();
---------------------------------------------------------------------
I'm using sikuli to script a tutorial; love it!
And it would be even greater to use a master time accross the program,
instead of only wait commands.
so instead of
wait(1); click();
wait(0.5); click();
wait(2); click();
be able to
[start time from 0 when start to run a script]
time(0:02.00); click();
time(0:02.50); click();
time(0:04.50); click();
Is something like that possible? Thanks!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.