473,412 Members | 3,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

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.
Mar 25 '08 #1
5 1208
debasisdas
8,127 Expert 4TB
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.
Mar 25 '08 #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.

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.
Mar 25 '08 #3
debasisdas
8,127 Expert 4TB
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.
Mar 25 '08 #4
!NoItAll
297 100+
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.
Mar 26 '08 #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.

Thanks a lot for help.

I done same thing after separating the keyboard and scaner.
Mar 27 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: jas | last post by:
I have a basic client/server socket situation setup....where the server accepts a connection and then waits for commands. On the client side, I create a socket, connect to the server...then I...
4
by: santa19992000 | last post by:
can I use scanf to get input (some times user enters input sometimes not, just hit keyboard)?. It displays to enter IP address, if user wants to change, then he enters, otherwise he hits keyboard,...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
2
by: Dave Hammond | last post by:
Hi All, We use the Navicat GUI tool for end-user report generation, data exports, etc, from MySQL databases. In this capacity, it works admirably. Unfortunately, one downside is the lack of...
2
by: royaldothighness | last post by:
Hi all, I defined unsigned_int in my database, which uses unsigned_int_range rule. The unsigned_int_range rule is defined as follows: @unsigned_int >=0 and @unsigned_int <=4294967295 ...
51
by: Paul Gorodyansky | last post by:
Hi, Ran into the following problem while trying to have a code to attach a Virtual Keyboard to any user's form: User clicks a button and my JavaScript changes outerHTML of say <textarea -...
10
by: AA Arens | last post by:
I do have a database with customer info in it. To avoid it will be taken out of our office, is it possible to make it not-readable after a certain period? then every let say seven days, I needs to...
1
by: Aycex | last post by:
I am taking my first java class as i am a Database person this is quite interesting and here is my problem. We are supposed to be learning to overload a class and i believe i have my code correct...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
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...

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.