TIP: Click on subject to list as thread! ANSI
echo: delphi
to: GARY WEINFURTHER
from: OLE ALMIND MORTENSEN
date: 1997-04-13 10:36:00
subject: Re: How to trap keypress

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.