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,FREEMAIL_FROM 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!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 22 Dec 2005 20:49:23 -0600 From: "Steve" Newsgroups: comp.lang.ada References: <1135302476.367605.172030@g14g2000cwa.googlegroups.com> Subject: Re: simulate mouse click - windows Date: Thu, 22 Dec 2005 18:51:39 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 24.20.111.245 X-Trace: sv3-Zg0gw2QH6n90j4jECKyitUj35cr0JC5ZOFpTnAsoqsc1nR/ahfqeameMFDO1DSrCq6PMUpo5Uv2g2UQ!IuBapgukmOHXffnYIx5Al/vr6cGDWL2bCSfwiVrlQNR5Dq+MyEENVmf/w9RNFzFr84kgjmtIYJUl!MeVQztZAROTRcg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6980 Date: 2005-12-22T18:51:39-08:00 List-Id: "Gutek" wrote in message news:1135302476.367605.172030@g14g2000cwa.googlegroups.com... > 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? > Do you just want to use this device with your program? Or do you want it to act as the mouse for windows? If the you want the device to appear as a mouse to window, you'll need to look into writing device drivers. You may be able to find source code for existing mouse drivers on the net to get an idea of how its done. I hope this helps. Steve (The Duck) > > Thanks in advice. >