sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45051
Re: [Question #267182]: TightVNC: click into VNC window does not work
Question #267182 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267182
RaiMan proposed the following answer:
Uuups, you touched a critical area ;-)
I am sorry, but not all Region methods are "VNC-aware", meaning, that a
resulting Region, might "not know", that it is on a VNC screen.
... and I had a look into this group of methods for rastering a region:
you might find bugs (result not as expected) besides the mentioned not-
VNC-aware problem.
so
vnc.getRow(3, 4).getCol(1, 3)
might be calculated correctly, but is not flagged as being on the vnc-screen
What you can do:
make a method:
public Region asVNC(Region reg, IScreen vnc) {
reg.setOtherScreen(vnc);
return reg
and use it:
asVNC(vnc.getRow(3, 4).getCol(1, 3), vnc).click();
ugly, but works.
if the function asVNC is in the same class file as your code:
public Region asVNC(Region reg) {
reg.setOtherScreen(vnc);
return reg
and
asVNC(vnc.getRow(3, 4).getCol(1, 3)).click();
less ugly, but now depends on the global variable vnc.
I am sorry, but I doubt, that I get to that problem before beginning of
next year.
So you have to live with it for now.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.