On Aug 27, 2004, at 7:33 PM, Thomas Busey wrote:

Since we are talking about mice, here is a hard one. I need to be able
to move the position of the cursor on the screen. That is, I need
something like:

SetMouse(258, 234)

which in applications would put this at screen location 258,234. Yes, I
know this breaks all kinds of user interface guidelines, but I really
need it for a psychology experiment. There are lots of java routines
for reading the mouse position, but I need one that will set the mouse
to a new location. Any ideas?

Thanks,

Tom

look at java.awt.Robot.mouseMove()


Rob Ross, Senior Software Engineer E! Networks [EMAIL PROTECTED] --------------------------------------------------- "Beware of he who would deny you access to information, for in his heart he dreams himself your master." -- Commissioner Pravin Lal


Rob Ross, Senior Software Engineer E! Networks [EMAIL PROTECTED] --------------------------------------------------- "Beware of he who would deny you access to information, for in his heart he dreams himself your master." -- Commissioner Pravin Lal

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to