Article View: borland.public.cppbuilder.nativeapi
Article #12218Re: Sending keyboard messages
From: Daniel Delande
Date: Tue, 16 Dec 2003 18:15
Date: Tue, 16 Dec 2003 18:15
15 lines
1680 bytes
1680 bytes
>>I had the opportunity to hook WindowProc in the destination >>application, so as to monitor the keyboard messages >>WM_KEYDOWN, WM_KEYUP and WM_CHAR. I noted >>the sequence I got hooked when I actually typed the Shift+G >>sequence (WM_KEYDOWN Shift, WM_KEYDOWN G, >>WM_CHAR G, WM_KEYUP G and WM_KEYUP Shift) >>and repeated it in my program (verbatim, including scan codes, >>etc.). I found exactly the same sequence in the hook procedure, >>but unfortunatly, the destination application still ignored the Shifts. > > > Then it is an issue with the window itself, not your code. You are right, I tried with Notepad, that displays the G in uppercase, as expected.
Technical Details
Message-ID:
<3FDF4BDE.6000802@fnac.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3FDE365E.2030501@fnac.net> <3fde38ee$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ff1c03795d4b3af5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-16 10:41:02 PST Message-ID: <3FDF4BDE.6000802@fnac.net> Date: Tue, 16 Dec 2003 19:15:58 +0100 From: Daniel Delande <daniel.delande@fnac.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: fr-fr, fr, en-us MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Sending keyboard messages References: <3FDE365E.2030501@fnac.net> <3fde38ee$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.167.84.245 X-Trace: newsgroups.borland.com 1071598382 81.167.84.245 (16 Dec 2003 10:13:02 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail