Re: [Sikuli-driver] [Question #689511]: Enabled and disabled Button

2020-03-27 Thread Sreelekshmi
Question #689511 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689511

Status: Answered => Solved

Sreelekshmi confirmed that the question is solved:
Thank you so much Raiman. It works perfectly.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #689511]: Enabled and disabled Button

2020-03-26 Thread RaiMan
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 = .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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp