Can java take over a mouse?

Is it possible to move the mouse to new coordinates on the screen using java?

First person to solve gets 10 dukes.

[127 byte] By [1cMas5_cowa] at [2007-11-27 11:52:13]
# 1

java.awt.Robot

BigDaddyLoveHandlesa at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...
# 2

how do i do it?

1cMas5_cowa at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...
# 3

java.awt.Robot class has a mouseMove(int x, int y) method.

drawimagea at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...
# 4

Java has this wonderful thing called the API documentation:

http://java.sun.com/javase/6/docs/api/java/awt/Robot.html

BigDaddyLoveHandlesa at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...
# 5

> First person to solve gets 10 dukes.

I love how the new guys dangle the Duke Stars at us.

So my question is this 1cMas5_cow, have you ever walked

into a store, paid for something and had the cashier offer to

give you your change in Duke Stars? : )

TuringPesta at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...
# 6

I met James Gosling at the Java One conference, and he reached into

his wallet and gave me some Canadian Tire money in exchange for

Duke Stars. Honest.

BigDaddyLoveHandlesa at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...
# 7

> I met James Gosling at the Java One conference, and

> he reached into

> his wallet and gave me some Canadian Tire money in

> exchange for

> Duke Stars. Honest.

Can i please get back the time i spent reading that story?

TuringPesta at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...
# 8

> > I met James Gosling at the Java One conference,

> and

> > he reached into

> > his wallet and gave me some Canadian Tire money in

> > exchange for

> > Duke Stars. Honest.

>

> Can i please get back the time i spent reading that

> story?

Should I post a new topic and award you 1 duke star there?

BigDaddyLoveHandlesa at 2007-7-29 18:43:07 > top of Java-index,Java Essentials,Java Programming...