screenshots not recognised when re-running script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
High
|
Tom Yeh | ||
Bug Description
After writing a script and ensuring that all the regions chosen are recognised and correct I run the script and it works. however after re-opening the script and re-running it some of the regions are no longer found (either finds no matches or it finds completely different regions) yet the screen being referenced remains exactly the same.
Using Sikuli version 0.9.8
Windows XP 32-bit
I would really like to use this app for work, I think the idea is great, but this is a problem as if I need to run the script more than once i keep having to go back in and edit the script in some way or another even though there have been no changes to the screen that is being referenced. and it seems like I might be forced to look for another alternative
Changed in sikuli: | |
importance: | Undecided → High |
assignee: | nobody → Tom Yeh (doubleshow) |
status: | New → In Progress |
please post your script here and the content of the message area in a bad run. Some info on the dimension of the images or a screenshot as attachement would be helpful.
possible reason: I found that Sikuli has severe problems with images, that exceed certain dimensions and contain much text, e.g. complete app windows (both Mac and Win). I'm preparing a bug report on that.
to test, just script:
switchApp( "SomeOtherApp" ) # to be sure Sikuli IDE is out of way
find(capture())
no parm! when run you will be turned into the interactive capture mode (like with the foto symbol in the IDE) and then Sikuli tries to find what you just captured. You will be surprised about the results
By the way: You say "ensuring that all the regions chosen are recognised and correct". Do you use the Preview (click on an image and check the result in the little preview window)? If you play around with slider and number, and click OK, the image is changed into a pattern object pattern( <image> ).similar( decimal) .firstN( n). Info if used and where.