← Back to team overview

sikuli-driver team mailing list archive

[Bug 1354706] Re: OCR grey .png

 

So you seem to have some loop, that clicks on a button, that is found using the coloured version (active button), to search/click the button.
If the button gets inactive (greyed) the button is still found.

This usually happens, if you work with the standard similarity of 0.7.

To handle these cases, you have to use Patterns instead of images:

while exists(Pattern(imgButtonColored).exact()):
    click()
    wait(1)
print "button accepted the click"

For details pleas consult the docs, the faqs and other related questions
in this forum


** Changed in: sikuli
       Status: New => Opinion

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1354706

Title:
  OCR grey .png

Status in Sikuli:
  Opinion

Bug description:
  hello , i ' m using windows 7 64 bits ns latest version of sikuli ,

  sikuli don ' t recognize colors .

  example : we ask it to clic on a button , when this is done the button
  become grey , and sikuli want to clic it constantly and finish to
  crash or , it is impossible to move the mouse ^^

  it is permanent with all differents buttons .
   i ' ve tested on 20 differents buttons .

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1354706/+subscriptions


References