Article View: borland.public.cppbuilder.nativeapi
Article #12298Re: Simulate mouse click to another window
From: Ed Mulroy [TeamB]
Date: Mon, 15 Dec 2003 17:15
Date: Mon, 15 Dec 2003 17:15
13 lines
1565 bytes
1565 bytes
Given that you know the HWND of the window then you could select a location within the window's client area, send it a WM_LBUTTONDOWN message, delay a touch and then send a WM_LBUTTONUP message. . Ed > Jan wrote in message > news:3fddd8ec@newsgroups.borland.com... > > I'm writting a DLL that have a keyboard hook to see when the > user pres the escape key to close the active window. > This works fine, but now I must simulate a mouse click on > that window from inside the DLL.Any idea how I can fixes this ?
Technical Details
Message-ID:
<3fddec56$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fddd8ec@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,aaf30719407ea571 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-15 09:17:06 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fddd8ec@newsgroups.borland.com> Subject: Re: Simulate mouse click to another window Date: Mon, 15 Dec 2003 12:15:56 -0500 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <3fddec56$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071508566 24.74.175.102 (15 Dec 2003 09:16:06 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail