← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #657137]: region search work slower

 

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

    Status: Open => Solved

Logan John confirmed that the question is solved:
I kind of found my problem
I shouldn't use while exists(pattern,0)
cause if patter has a delay then the entire while it is skipped
if i use a exists(pattern,seconds) this will wait one more time for the specified number of seconds after the loop is done.
So a simple if exists(pattern,20) fix my problem. as soon as the pattern is found (1-2 seconds at most), it clicks on the object and the function is done without and delay hanging at the end of the function

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