Have you tried the java.awt.Robot class ? It seems to have the method you
need.
Benoit
> Hi, All!
>
[quoted text clipped - 11 lines]
>
> PS If it makes it different, the system is Linux with KDE 3.4
<snip>
> I've come across a problem which I've never met before. My program has
> to emulate a mouse movement and a mouse click. I.e. I need something
> like "mouseMoveTo(int x, y)" and "mouseClick()" that moves the cursor at
> (x,y) of the screen and emulates a left click, respectively.
<snip>
Take a look at java.awt.Robot, available since Java 1.3.
Methods available include mouseMove, mousePress, and mouseRelease.

Signature
Ian Shef 805/F6 * These are my personal opinions
Raytheon Company * and not those of my employer.
PO Box 11337 *
Tucson, AZ 85734-1337 *
Nik Belyaev - 31 Jan 2006 21:27 GMT
> <snip>
>> I've come across a problem which I've never met before. My program has
[quoted text clipped - 4 lines]
> Take a look at java.awt.Robot, available since Java 1.3.
> Methods available include mouseMove, mousePress, and mouseRelease.
OK, Thanks everybody! This is exactly the kind of class I've been looking
for but somehow couldn't find ;). Thanks again...

Signature
With best regards,
Nik