Question #656425 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656425
Manfred Hampl proposed the following answer:
I do not see the definition of endregion in your latest script.
I assume the following might work:
Settings.MoveMouseDelay(0.0)
endregion = Region (400, 30, 100, 50) # adapt the numbers to have a rectangle
where the green or red bar will appear (the smallest reasonable one)
winnerregion=Region (500, 100, 100, 50) # adapt the numbers to have a rectangle
where the "Set winner option" button will appear
yesregion=Region (600, 100, 100, 50) # adapt the numbers to have a rectangle
where the "yes" button will appear
while True:
setAutoWaitTimeout(0.1)
player1 = endregion.exists("greenbar.jpg")
player2 = endregion.exists("redbar.jpg")
if player2:
setAutoWaitTimeout(0.0)
winnerregion.click(set winner option image 1)
winnerregion.click(set winner option image 2)
wait (6.0)
if yesregion.exists(yes image)
click()
wait (5.0)
continue
...
--
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