RE: [DUG]: System wide keytrap
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
RE: [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, excuse me if I have misunderstood your question and am telling you something you already know, but I wonder why you need this key trap??? With a keyboard wedge scanner, all the work is done for you. It decodes the barcode, and fires in a stream of chars as if they had come from the keyboard. So in your app, if the Screen.cursor is in say a Tedit, and the scanner is used, the Tedit is populated. It's as simple as that. Note that you can program the scanner with prefix and postfix chars as well, and this is often usefull to tab out of the Current Control. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz