Can it is possible to prevnt the user to enter data throught keyboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hemant kamble
    New Member
    • Oct 2007
    • 8

    Can it is possible to prevnt the user to enter data throught keyboard

    Hi all,

    Can it is possible to prevnt the user to enter data throught keyboard and allow
    user to enter data through scaner (barcode scaner). how it's possible.

    Help me.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    You need to handle the keyascii of the key and make it zero. By this the user can't enter value from key board. Next use the barcode scanner to scan the label and pass the value to the application.

    But it is always recommended to have manual entry option in case the scanner fails to read from the barcode for some technical reason.

    Comment

    • hemant kamble
      New Member
      • Oct 2007
      • 8

      #3
      Originally posted by debasisdas
      You need to handle the keyascii of the key and make it zero. By this the user can't enter value from key board. Next use the barcode scanner to scan the label and pass the value to the application.

      But it is always recommended to have manual entry option in case the scanner fails to read from the barcode for some technical reason.

      Thanks for the help.

      But I had connected scaner and keyboard paralle to the PS2 port.

      If I restrict the to entet through keyboard it wll also affect the same for scaner.

      can you me hint code.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        since you will be handling the KeyPress event , it does not disable your keyboard but the application does not receive any value for keys. That will not affect your barcode reader.

        Comment

        • !NoItAll
          Contributor
          • May 2006
          • 297

          #5
          Hemant - I think you can not do what you want because the computer can not tell if the input is coming from the keyboard or the scanner. Since you have them connected in parallel to the PS2 port they are equivalent. If you get a USB scanner that has it's own driver (and does not use the OS built in HID driver) I think you are out of luck.

          Comment

          • hemant kamble
            New Member
            • Oct 2007
            • 8

            #6
            Originally posted by !NoItAll
            Hemant - I think you can not do what you want because the computer can not tell if the input is coming from the keyboard or the scanner. Since you have them connected in parallel to the PS2 port they are equivalent. If you get a USB scanner that has it's own driver (and does not use the OS built in HID driver) I think you are out of luck.

            Thanks a lot for help.

            I done same thing after separating the keyboard and scaner.

            Comment

            Working...