sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #49673
Re: [Question #676720]: How exactly does onChange() work
Question #676720 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676720
RaiMan proposed the following answer:
A new Region object, that is not referenced elsewhere with mouse
actions, only inside the handler.
reg1 = Region(...)
reg2 = reg1
now reg1 and reg2 are the same identical Region object. Changes to reg2
are seen in reg1 also.
reg1 = Region(...)
reg2 = Region(reg1)
now reg2 has the same aspects as reg1, but is a different object.
Changes to reg2 are not seen in reg1.
To synchronise mouse actions, the referenced region objects are used, to
not interfere a mouse action by another running in parallel
(foreground/background)
Hope it helps
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.