"Serdar C." <serdarc@(dont write this part)interaktif.gen.tr> wrote in
message news:%2***************@tk2msftngp13.phx.gbl...
hello everyone, i have a question about retrieving data from a bar code
reader plugged in keyboard port (ps/2)
i really dont know how to retrieve data from keyboard, i tried some
methods but all i could get was getting key values like "F7 key", or
"Shift key"... can someone tell me how to retrieve data from a bar code
scanner please? or at least how to retrieve data from ps/2 keyboard...
maybe a handle or so... thanx for reading this post and thanx so MUCH for
helping.. have a nice day.
This was some time ago but one thing we did was established how many
characters were coming in from the barcode and placed a non-visible textbox
on the screen. On a valuechange check the length, if the barcode reader is
done then you can evaluate the entire string.
An other thing you may want to take into account is make sure once you
process your keystrokes you "throw them away" so the OS and framework don't
process them. Keys like ESC and F11 have special meanings sometimes and if
you let them continue the OS will get hold of them and do funny things.
IIRC returning "false" from the keystroke handler means they don't get
passed on. But then you have to make sure you are not trapping "real" keys
some body pressed.
Tom P.