This site requires JavaScript, please enable it in your browser!
Greenfoot back
erdelf
erdelf wrote ...

2012/6/12

Setting Coordinates of mouse

erdelf erdelf

2012/6/12

#
This is just an idea for the next greenfoot version, I would write the developer team a personal message if it would be possible on greenfoot.org. Now to the idea, wouldn't it be good to set the mouse coordinates? It may be helpfull for the developer team to decide if other users would write their meaning to this.
USBest USBest

2012/6/12

#
Well. There is a possibility to set the mouse location with: new Robot().mouseMove(int x, int y) But this method is only for the screen coordinates...
erdelf erdelf

2012/6/12

#
well, I can't find the method mouseMove(int x, int y) in the documentation
danpost danpost

2012/6/12

#
in the java.awt package; so you need to either 'import java.awt.*' or 'import.java.awt.Robot;'. Look at the Robot class documentation.
erdelf erdelf

2012/6/13

#
well, ok forget it
You need to login to post a reply.