From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,501f57fc0d7fea05 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!nntp.abs.net!news.abs.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: simulate mouse click - windows References: <1135302476.367605.172030@g14g2000cwa.googlegroups.com> From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:R3/qInM+eI1FW3iz4yvgu3QMWVw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 23 Dec 2005 21:59:55 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1135393197 66.159.65.1 (Fri, 23 Dec 2005 21:59:57 EST) NNTP-Posting-Date: Fri, 23 Dec 2005 21:59:57 EST Xref: g2news1.google.com comp.lang.ada:7001 Date: 2005-12-23T21:59:55-05:00 List-Id: "Gutek" 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