sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45885
Re: [Question #664345]: CPU usage going through the roof when running script
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.