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

    Status: Open => Answered

RaiMan proposed the following answer:
imgOn = "enabled.png"
imgOff = "disabled.png"

m = <region containing the button>.findBest(imgOn, imgOff)
print m.getIndex(), m.getScore()
if m.getIndex() == 0:
    print "enabled"
else: 
    print "disabled"

The details can be found in the docs

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to