Inputing data without hitting a button or enter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • id10t error

    Inputing data without hitting a button or enter

    I have a program where were are scanning bar codes for a scanner
    hooked up to a laptop via USB. The scanner adds the CRLF at the end
    of
    every scan. I need to figure out how to make the program to caputer
    the number scanned so i can use it in my program. Right now i have
    them scanning the item and then hitting a button on the form to enter
    the number and I want to make it so they do not have to hit the
    button. Can anyone help me on this.

  • rowe_newsgroups

    #2
    Re: Inputing data without hitting a button or enter

    On Oct 19, 9:29 am, id10t error <tubbz...@gmail .comwrote:
    I have a program where were are scanning bar codes for a scanner
    hooked up to a laptop via USB. The scanner adds the CRLF at the end
    of
    every scan. I need to figure out how to make the program to caputer
    the number scanned so i can use it in my program. Right now i have
    them scanning the item and then hitting a button on the form to enter
    the number and I want to make it so they do not have to hit the
    button. Can anyone help me on this.
    Most usb bar code readers act as a keyboard emulator, so you should be
    able to use the typical keypress/keydown/keyup events.

    Thanks,

    Seth Rowe

    Comment

    • id10t error

      #3
      Re: Inputing data without hitting a button or enter

      On Oct 19, 10:48 am, rowe_newsgroups <rowe_em...@yah oo.comwrote:
      On Oct 19, 9:29 am, id10t error <tubbz...@gmail .comwrote:
      >
      I have a program where were are scanning bar codes for a scanner
      hooked up to a laptop via USB. The scanner adds the CRLF at the end
      of
      every scan. I need to figure out how to make the program to caputer
      the number scanned so i can use it in my program. Right now i have
      them scanning the item and then hitting a button on the form to enter
      the number and I want to make it so they do not have to hit the
      button. Can anyone help me on this.
      >
      Most usb bar code readers act as a keyboard emulator, so you should be
      able to use the typical keypress/keydown/keyup events.
      >
      Thanks,
      >
      Seth Rowe
      I have tried that and it only grabs the first number of the barcode.
      Do you know anyway around this?

      Comment

      • rowe_newsgroups

        #4
        Re: Inputing data without hitting a button or enter

        On Oct 19, 10:53 am, id10t error <tubbz...@gmail .comwrote:
        On Oct 19, 10:48 am, rowe_newsgroups <rowe_em...@yah oo.comwrote:
        >
        >
        >
        On Oct 19, 9:29 am, id10t error <tubbz...@gmail .comwrote:
        >
        I have a program where were are scanning bar codes for a scanner
        hooked up to a laptop via USB. The scanner adds the CRLF at the end
        of
        every scan. I need to figure out how to make the program to caputer
        the number scanned so i can use it in my program. Right now i have
        them scanning the item and then hitting a button on the form to enter
        the number and I want to make it so they do not have to hit the
        button. Can anyone help me on this.
        >
        Most usb bar code readers act as a keyboard emulator, so you should be
        able to use the typical keypress/keydown/keyup events.
        >
        Thanks,
        >
        Seth Rowe
        >
        I have tried that and it only grabs the first number of the barcode.
        Do you know anyway around this?
        I believe the event(s) should fire for each number? Also what is the
        barcode scanner inputting the data into, a textbox? If so you could
        just use the TextChanged event to start your code.

        Thanks,

        Seth Rowe

        Comment

        • Stan Smith

          #5
          Re: Inputing data without hitting a button or enter

          "id10t error" <tubbz151@gmail .comwrote in message
          news:1192805608 .492012.86670@i 13g2000prf.goog legroups.com...
          On Oct 19, 10:48 am, rowe_newsgroups <rowe_em...@yah oo.comwrote:
          >On Oct 19, 9:29 am, id10t error <tubbz...@gmail .comwrote:
          >>
          I have a program where were are scanning bar codes for a scanner
          hooked up to a laptop via USB. The scanner adds the CRLF at the end
          of
          every scan. I need to figure out how to make the program to caputer
          the number scanned so i can use it in my program. Right now i have
          them scanning the item and then hitting a button on the form to enter
          the number and I want to make it so they do not have to hit the
          button. Can anyone help me on this.
          >>
          >Most usb bar code readers act as a keyboard emulator, so you should be
          >able to use the typical keypress/keydown/keyup events.
          >>
          >Thanks,
          >>
          >Seth Rowe
          >
          I have tried that and it only grabs the first number of the barcode.
          Do you know anyway around this?
          >
          Seth,

          Read them all and look for the CRLF.

          Stan

          Comment

          • =?Utf-8?B?VGVycnk=?=

            #6
            RE: Inputing data without hitting a button or enter

            Are you done with the input when the scanner sends the 'enter'? Can you make
            the button the 'default' button for the form? Otherwise, keydown or keypress
            event to look for the 'enter' key and take whatever action you need.
            --
            Terry


            "id10t error" wrote:
            I have a program where were are scanning bar codes for a scanner
            hooked up to a laptop via USB. The scanner adds the CRLF at the end
            of
            every scan. I need to figure out how to make the program to caputer
            the number scanned so i can use it in my program. Right now i have
            them scanning the item and then hitting a button on the form to enter
            the number and I want to make it so they do not have to hit the
            button. Can anyone help me on this.
            >
            >

            Comment

            Working...