sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27594
[Question #252884]: Time based if statements
New question #252884 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252884
I was wondering if it was possible to have a specific argument that is only true after a 30 second delay from its last time run
for example
if exists(image.png) and 'time since last run' > 30:
#bunch of functions and stuff
else:
pass
So in my dream script, this if is running in a loop but i can set delays on specific lines while not stopping it from doing the other lines.
I cant use wait(30) because then it would just stall the script for 30 seconds and would stop it from running the rest of the loop while waiting.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.