Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trapping and sending keystrokes from/to other windows?

1 view
Skip to first unread message

Nicola Wrachien

unread,
May 6, 2001, 5:37:58 AM5/6/01
to
Hi all,
I have two questions:

1) I'd like to trap keystrokes even when my form is hidden or hasn't the
keybd focus.
I tried with the GetAsyncKeyState() function in a for() loop in order to
catch all the possible virtual keys; I execute this loop every tenth of
second, by using a TTimer; however, in this way, I often don't get the key
in the right order they were pressed. (e.g. if I write in a Notepad window
"HELLO", I often -but not always- get "EHLLO")
Anyone knows a better and more reliable way to do that?

2) How can I send keystrokes to other windows??

Thanks in advance !

Nicola


0 new messages