Board index » delphi » How intercept keyboard messages ?

How intercept keyboard messages ?

 I want to make a program that receiving keyboard
 messages (preferable with WM_CHAR) of all the system,
 that is to say, of all the applications that they in
 their moment become active.
 How could make it ?

 Please reply to : LBa...@LatinMail.com

 thanxs

 

Re:How intercept keyboard messages ?


Quote
Luis Banda wrote:

>  I want to make a program that receiving keyboard
>  messages (preferable with WM_CHAR) of all the system,
>  that is to say, of all the applications that they in
>  their moment become active.
>  How could make it ?

To capture ALL keypress then you need to set up a keyboard hook.

Look up the help commands for SetWindowsHookEx and UnhookWindowsHookEx
commands.

Also you can search the web or these newsgroups for examples of Keyboard
hook code.

--
Charles Hacker
Lecturer in Electronics and Computing
School of Engineering
Griffith University - Gold Coast
Australia

Other Threads