🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12301

Re: Sending keyboard messages

#12301
From: Remy Lebeau (TeamB)
Date: Mon, 15 Dec 2003 22:47
25 lines
1905 bytes
"Daniel Delande" <d.delande@fnac.net> wrote in message
news:3FDE365E.2030501@fnac.net...

> I tried SendMessage() (I have a handle to the destination window),
> and found that the destination application ignores the Shifts.

It shouldn't be, unless either 1) you are not sending them correctly to
begin with, or 2) the window is specifically coded to ignore Shift if the
window is not focused (unlikely, but possible).

> 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.


Gambit
Technical Details
Message-ID: <3fde38ee$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3FDE365E.2030501@fnac.net>

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-15 15:10:13 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3FDE365E.2030501@fnac.net>
Subject: Re: Sending keyboard messages
Date: Mon, 15 Dec 2003 14:47:36 -0800
Lines: 27
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.1165
NNTP-Posting-Host: 67.23.78.224
Message-ID: <3fde38ee$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071528174 67.23.78.224 (15 Dec 2003 14:42:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail