You could use SetWindowsHookEx() with the WH_KEYBOARD parameter.
Unfortunately a system wide hook must be set from within a DLL.
Fortunately DLLs aren't so bad in Delphi.
Paul Ritchie
RCS (NZ) Ltd.
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, 19 March 1999 05:42
> To: Multiple recipients of list delphi
> Subject: [DUG]: System wide keytrap
>
> Is there a system API to trap all keystrokes systemwide so that I can
> implement a kbd connected bar-code-scanner driver ?
>
> Rohit
>
> ======================================================================
> CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
> PH (649) 489-2280
> FX (649) 489-2290
> email [EMAIL PROTECTED] or [EMAIL PROTECTED]
> ======================================================================
>
> ----------------------------------------------------------------------
> -----
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz