Hello Gary!
Thursday April 10 1997, Gary Weinfurther wrote to Ole Almind Mortensen:
OAM>> I need to know how to trap all keystrocks in Windows (Delphi 2.0),
lso
OAM>> when my program hasn't got focus, please help. :)
GW> You have to install a keyboard hook using a DLL. It's not pretty. See
GW> the SetKeyboardHook API function. And note that 32 bit DLLs do not
hare
GW> their data between applications. So you also have to make use of
GW> memory-mapped files to store your hook handles and other information.
I planned on using SetWindowsHookEx, but I can't figure which variables I
have to use. If anyone knows anything about it, please post some sourcecode.
:)
Kind regards Ole
E-Mail: Ole_Mortensen@Hotmail.com
--- Pr›v CDMag 2.50 fra Primeware.
---------------
* Origin: Nightcall Point (2:237/10.150)
|