sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54702
Re: [Question #689511]: Enabled and disabled Button
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.