sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36330
Re: [Question #280747]: Sikulix Region not working
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747
Status: Open => Answered
RaiMan proposed the following answer:
Supposing you are using version 1.1.0
To get the speed-up of using Regions:
if CurrentBarRegion.exists(Pattern("1452165008359.png").similar(0.76),
0): CurrentBarRegion.hover()
... which searches in the CurrentBarRegion and if found hovers over the
last match in CurrentBarRegion
... and you should just work with the standard Settings especially as
newbie:
so just purge these:
Settings.ObserveScanRate = 18 # not relevant for your script (no observe used)
Settings.WaitScanRate = 15 # does not have an effect with exists(..., 0)
Settings.MoveMouseDelay = 0 # saves 0.5 seconds per mouse move (not really relevant)
Settings.MouseDelay = 0 # not relevant in your case and seldom necessary
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.