Re: A fake mouse click



Have you tried the java.awt.Robot class ? It seems to have the method you
need.

Benoit



"Nik Belyaev" <enby2005@xxxxxxxxx> wrote in message
news:drnmk3$pvi$1@xxxxxxxxxxxxxxxxxxxxxxx
> Hi, All!
>
> 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.
>
> I tried searching for this kind of method in the RTFM but I didn't get any
> results...
>
> I'd really appreciate if someone could show me the right way of
> implementing
> this.
>
> PS If it makes it different, the system is Linux with KDE 3.4
>
> --
> With best regards,
> Nik


.



Relevant Pages