Article View: borland.public.cppbuilder.nativeapi
Article #17256Re: Sending Mouse Events
From: Chris W
Date: Tue, 01 Apr 2003 03:33
Date: Tue, 01 Apr 2003 03:33
39 lines
1904 bytes
1904 bytes
how do I find out the HWND handle for another application I didn't write and where can I find a referance for these functions? I can't find anything in the CPPBuilder help files. Chris bcb wrote: > 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:
<3E890877.84654EDB@cox.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3E889D36.BE470D49@cox.net> <3e88fafa@newsgroups.borland.com>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 19:43:09 PST Message-ID: <3E890877.84654EDB@cox.net> Date: Mon, 31 Mar 2003 21:33:11 -0600 From: Chris W <chrisw3@cox.net> X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Sending Mouse Events References: <3E889D36.BE470D49@cox.net> <3e88fafa@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.12.125.52 X-Trace: newsgroups.borland.com 1049167933 68.12.125.52 (31 Mar 2003 19:32:13 -0800) Lines: 42 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail