program agains relative time --- a suggestion
---- a simple solution based on seconds
waitUntilStart = time.time()
def waitUntil(
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!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bas
- Solved:
- Last query:
- Last reply: