simulate mouse click - windows



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).


But,
How could I simulate clicks?


Thanks in advice.

.


Quantcast