Open GoogleCodeExporter opened 8 years ago
Ok, i'll try to fix that, in the next release
Original comment by pierredu...@gmail.com
on 26 Sep 2010 at 1:49
It looks like you fixed the issue by checking against (pointerInfo != null).
Now the behavior for me is the following: I get no Excepton, but the moment I
move the cursor to the corner of the screen even once, it becomes unresponsive.
I have to move it back into the screen with the mouse installed on the system
before I can move it again with the remote.
This seems to be caused by MouseInfo.getPointerInfo() consistently returning
null after the Robot moved the mouse beyond the dimensions of the screen. I
kind of fixed it with the following lines:
x = x < 0 ? 0 : (x >= screenDim.width ? screenDim.width - 1 : x);
y = y < 0 ? 0 : (y >= screenDim.height ? screenDim.height - 1 : y);
this.application.getRobot().mouseMove(x, y);
But this prevents me from moving the mouse to a secondary screen (where the x
coordinate is indeed negative). Probably you can find a better way.
TLDR: check the coordinates against the screen size before calling
.mouseMove(x,y), at least for MacOSX
Original comment by reimann....@gmail.com
on 9 Feb 2011 at 8:24
Same behavior - moving to the screen edges causes connection loss.
On OSX 10.6.8 and
java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
the stack trace now looks like:
java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:250)
at org.pierre.remotedroid.protocol.action.PRemoteDroidAction.parse(PRemoteDroidAction.java:23)
at org.pierre.remotedroid.protocol.PRemoteDroidConnection.receiveAction(PRemoteDroidConnection.java:30)
at org.pierre.remotedroid.server.connection.PRemoteDroidServerConnection.run(PRemoteDroidServerConnection.java:73)
at java.lang.Thread.run(Thread.java:680)
Original comment by schnee...@gmail.com
on 13 Jul 2011 at 2:36
In my situation, it only jumps to top left corner and that makes it impossible
to use hidden dock or hot corners.
Original comment by fcanimi...@gmail.com
on 12 Oct 2011 at 8:43
Original issue reported on code.google.com by
bradpitc...@gmail.com
on 23 Sep 2010 at 3:20