Re: simulate mouse click - windows



"Gutek" <gut@xxxxx> writes:

> Hi,
> I'm writing program for windows, which is going to communicate by RS232
> with
> my home-made device (functionally it is something like a mouse).
> I'm using GNAT.
> My program is listening the data coming from device, and according to
> them
> it has to:
> 1) Change cursor position
> 2) Simulate mouse clicks (left and right button)
>
> I have solved the problem with changing cursor position - using
> "GWindows"
> from: http://www.gnavi.org (Set_Cursor_Position, Get_Cursor_Position
> procedures).

In the CVS version of GWindows, there is a package
GWindows.Testing.Events, that has a nice binding to Mouse_Event. That
will let you generate mouse events on the normal Windows event queue,
just like a real mouse.

--
-- Stephe
.


Quantcast