Results 1 to 2 of 2
Thread: Move mouse beyond screen limits
- 06-22-2018, 04:31 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 19
- Rep Power
- 0
Move mouse beyond screen limits
My screen resolution is 1600x900
I need to get mouse position continuously.
Java Code:while(true) { Point p = MouseInfo.getPointerInfo().getLocation(); System.out.println("x " + p.getX() + " " + "y "+ p.getY()); }
For example. Is that posible to move mouse cursor at point 2000x600 ??
Thank you in advance
- 06-22-2018, 04:45 PM #2
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,226
- Rep Power
- 15
Re: Move mouse beyond screen limits
If you want to get the mouse location continuously you should use a mouse listener. If you use the Robot class you can get mouse information outside of the Java windowing system but as far as I know are limited to the physical screen size.
Regards,
JimThe JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
Similar Threads
-
New to Java, cant get on screen object to move.
By JWallace in forum New To JavaReplies: 10Last Post: 08-18-2016, 09:43 PM -
Ball Move to mouse not animating.
By Jossos in forum New To JavaReplies: 6Last Post: 01-05-2012, 02:42 PM -
RNG Used To Move Mouse
By alexburkee in forum New To JavaReplies: 5Last Post: 12-12-2011, 12:36 AM -
how to move an image automatically without using mouse
By saranyabaskaran in forum New To JavaReplies: 6Last Post: 03-19-2011, 11:00 AM -
Move from one screen fto other screen
By jprgmr75 in forum CLDC and MIDPReplies: 0Last Post: 01-02-2011, 07:32 PM
Bookmarks