Article View: borland.public.cppbuilder.nativeapi
Article #17255Re: Sending Mouse Events
From: bcb
Date: Tue, 01 Apr 2003 02:34
Date: Tue, 01 Apr 2003 02:34
33 lines
1609 bytes
1609 bytes
Hi . You can use SendMessage to send mouse events. You just need to supply a HWND (Handle of the Form or Component). Examples: Send Click, SendMessage(SomeHandle, BM_CLICK, 0, 0); MouseUp SendMessage(SomeHandle,WM_LBUTTONUP,0,0); MouseDown SendMessage(SomeHandle,WM_LBUTTONDOWN,0,0); Hope this helps! "Chris W" <chrisw3@cox.net> wrote in message news:3E889D36.BE470D49@cox.net... > I want to send mouse down and mouse up events to another application. I > can get the Process ID from win2k's taskmanager. I want to send them > at regular timed intervals does anyone know how to do this. I don't > have any kind of API reference. I am using BCB 5.0 > > -- > Chris W > > >
Technical Details
Message-ID:
<3e88fafa@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3E889D36.BE470D49@cox.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,458ff317f58d8d34 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-31 18:43:06 PST From: "bcb" <noemail@sorry.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3E889D36.BE470D49@cox.net> Subject: Re: Sending Mouse Events Date: Mon, 31 Mar 2003 21:34:50 -0500 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 172.167.187.30 Message-ID: <3e88fafa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049164538 172.167.187.30 (31 Mar 2003 18:35:38 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail