Re: Handle / detect <Alt> key combinations



Jatin wrote:
Jamie,

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?

You keep changing your mind..
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";

.