473,801 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

Oct 19 '07 #1
5 1670
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

Oct 19 '07 #2
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?

Oct 19 '07 #3
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

Oct 19 '07 #4
"id10t error" <tu******@gmail .comwrote in message
news:11******** *************@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

Oct 21 '07 #5
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.

Oct 22 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

65
4519
by: SamMan | last post by:
A question came up at work from one of our clients about forms on their site. The data from these forms are processed by a PHP script and if all goes well, a thank you screen appears. Sometimes, when you go back to the form (by clicking the back button), the data is still there in the form fields. Other times it is not. The client would like to ensure the data remains, as they sometimes have multiple submissions to make with similar...
3
11682
by: Megha Vishwanath | last post by:
Hi, I have a struts form <html:form> in which although the focus rests on the submit button, hitting the enter key does not submit the form. I tried capturing the Enter key event and followed it by the document.form.submit() but this takes me through the validation attached with the submit twice( giving me all the alerts twice). Here's the code
10
9144
by: mg | last post by:
I want to enter characters in a TextBox in a WebForm, press a Button in the WebForm, and read the characters that were typed into the TextBox from within the Button_Click event handler. The main point here is that I want to read the value typed into the TextBox without hitting the Enter key or setting focus on another control ...
2
3121
by: 23s | last post by:
My site's login page has a form w/ 2 textboxes and a submit button. If I'm in either of those textboxes (i.e., either one of the textboxes has focus), in any given browser, hitting "enter" on my keyboard submits the form. Server side, I handle the click event of the submit button. This is the expected behavior, and this is the behavior irrespective of what browser I use on the login page. However... I have different page that is an...
4
1255
by: Will Lastname | last post by:
I'm creating an application that allows a user to enter multiple items that correspond to a single collection. The idea is that they enter the product in the textbox, hit submit, repeat.... Currently they have to manually move the cursor back to the textbox to continue inputting data. Since hitting the enter button will trigger an event handler I was curious as to how to go about defaulting the cursor position to being in the textbox at...
5
5433
by: Wonder | last post by:
How can I create or use the msgobx to show a message without a default button. The user has explicity to click on the button, so the msgbox closes it. Thanks,
5
1617
by: Steve JORDI | last post by:
Hi, I have a strange behavior when using IExplorer over FireFox. There is an html form that asks for the name of a city and has a dedicated field for that with a submit button next to it. In IExplorer, if I hit return instead of clicking the button, the PHP query on MySQL fails when reaching the mysql_fetch_object function. It's ok if I click the button.
4
6256
by: slinky | last post by:
I have a textbox that a user enters the current time (in this case at the end of a task, and it gets its value via a button's click event and getting its value from =Now() ). Is there a way to LOCK this textbox's value once the user hits the button that posts the time. I tried to make the button invisibe right after the button is hit, but I get an error. Anyone got any clues for revision? Thanks! Here is my code: Private Sub...
15
2373
by: Doogie | last post by:
I have a .net app that a user currently enters a number in a text box, hits a button and a data call is executed. She wants the ability to enter in multiple numbers (up to 100). So to make things look better visually for that, I created a listbox under the text box. She enters the number in the text box, clicks another button I added and the number is stored in the list box. Then my plan was to grab all those numbers from the list box...
0
9556
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10520
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10269
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10053
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7591
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6830
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5480
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5617
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4259
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.