RE: [DUG]: System wide keytrap
1. You have opened a menu item and scan the barcode in. 2. You are in your wordprocessor, when some one fiddles with the scanner. OK. If you are concerned about this, then perhaps a good solution might be to consider using a serial device instead, or are you talking about a special keyboard with Mag Stripe reader and Scanner decoder built in? --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: System wide keytrap
Maybe you have Tony. What happens in the following cases :- 1. You have opened a menu item and scan the barcode in. 2. You are in your wordprocessor, when some one fiddles with the scanner. Yes, I know that there are large commercial apps out there that do what you say. However, our 10y old dos app does much better than that. :-) On 18 Mar 99 at 16:58, Tony Blomfield wrote: > > 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 > 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
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
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
[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