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

RaiMan proposed the following answer:
Again Python and OOP:
if Region(2927,567,639,340).exists("Fight.png"): 
Region(2927,567,639,340).click()

both Region() each create different (new) objects and hence have
different content/attributes.

region1 =  Region(2927,567,639,340)
if region1.exists("Fight.png"): region1.click()

BTW: is rather easy in the IDE:
write
region 1 = 

leave the cursor behind the = and click the "select a Region" button.

Watch and be enthusiastic ;-)

-- 
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

Reply via email to