comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
Subject: Re: simulate mouse click - windows
Date: Fri, 23 Dec 2005 21:59:55 -0500
Date: 2005-12-23T21:59:55-05:00	[thread overview]
Message-ID: <uacer2o9g.fsf@acm.org> (raw)
In-Reply-To: 1135302476.367605.172030@g14g2000cwa.googlegroups.com

"Gutek" <gut@op.pl> 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



      parent reply	other threads:[~2005-12-24  2:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-23  1:47 simulate mouse click - windows Gutek
2005-12-23  2:51 ` Steve
2005-12-23  6:07   ` tmoran
2005-12-23 11:13 ` bubble
2005-12-23 12:47 ` Adrien Plisson
2005-12-24  1:54 ` Gutek
2005-12-24  2:59 ` Stephen Leake [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox