Re: Handle / detect <Alt> key combinations
- From: Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx>
- Date: Sat, 31 May 2008 12:39:58 -0400
Jatin wrote:
Jamie,You keep changing your mind..
keybd_event
keybd_event will let me simulate the key strokes. I want to be able to detect <Alt><Ctrl><anykey> presses. Can you point me to any code that shoes how to do that? This is how I am trying to do now:
procedure WMKeyDown(var Message : TWMKeyDown); message WM_KEYDOWN;
....
....
procedure TAppPanel.WMKeyDown(var Message : TWMKeyDown);
begin
inherited;
if (hwndApp <> 0) then
PostMessage(hwndApp, Message.Msg, Message.CharCode, Message.KeyData);
end;
But the above code doesn't get fired when <Alt> key is pressed. What should I do to trap <Ctrl><Alt><anykey> key presses?
first you tell us that you need to detect, I gave you the API call.
then you tell us that isn't the problem, that you can detect that you need to simulate a combination of. I Gave you that.
now we're back to square 1..
I don't think you know what you want.. sorry..
http://webpages.charter.net/jamie_5"
.
- References:
- Handle / detect <Alt> key combinations
- From: Jatin
- Re: Handle / detect <Alt> key combinations
- From: Jamie
- Re: Handle / detect <Alt> key combinations
- From: Jatin
- Re: Handle / detect <Alt> key combinations
- From: Jamie
- Re: Handle / detect <Alt> key combinations
- From: Jatin
- Handle / detect <Alt> key combinations
- Prev by Date: Re: Handle / detect <Alt> key combinations
- Next by Date: Can't understand why these exceptions occur...
- Previous by thread: Re: Handle / detect <Alt> key combinations
- Next by thread: Converting WideChar/WideString to AnsiChar/AnsiString
- Index(es):