sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20863
Re: [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/230237
Nicole Demers posted a new comment:
I am also getting this problem! I can run other scripts and the initial
exists in my code works fine, unfortunately for this one particular
image/click it hangs... and hangs and hangs. I also have only been
experiencing this since the upgrade from r3.
I am not sure what the problem is since when I click on the image in the
IDE it appears, shows me where it should match on the screen (So I know
it should be found) and I can adjust the properties and target offset
etc.
Unfortunately when I run the following code, it doesn't find the image
or throw a findFailed after the timeout:
click(wait(Pattern("1378242343085.png").similar(0.80).targetOffset(-20,-38),
3 * 60))
I don't think this code is really fancy, other instances of this same code work great!
I have tried separating the code into something like this:
m = wait(Pattern("1378242343085.png").similar(0.80).targetOffset(-20,-38), 3 * 60)
if m:
click(m)
but that hangs on the wait as well. I added a "print("Great success!")
after the wait and it is never printed. Even after waiting a halfhour to
cancel the script!
I have also tried restarting the computer, creating a new file, using a
new sikuli install and taking another screenshot. Nothing has worked! I
will try a new file with all new screenshots after an immediate restart,
but past that I just don't know what to do.
If you need to know anything else please let me know! I'd even be happy
to email you the offending image. :)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.