Solved

Hook keyboard and barcode scanner problem

Posted on 2003-11-21
4
564 Views
Last Modified: 2013-11-18
I use a hook keyboard dll with delphi application, this dll send key used for user to delphi application only but when I use the barcode scanner the characters send to application result of: DOMAYUSCULA OR ENTER O so on... not complete string result of laser read, the barcode scanner read from paper DO821431051 but application get DOMAYUSCULA or ENTER O so on...

How to read real string from barcode scanner with use hook keyboard dll?

The final procedure fro get Keys is:

  {Virtual key code to Key Name}
  GetKeyNameText(Message.LParam,@NombreTecla,100);

  {Look if the key was pressed, released o re-pressed}
  if ((Message.lParam shr 31) and 1)=1 then
    edIngreso.Text:= edIngreso.Text + String(NombreTecla)
//  Accion:='Soltada' {Released}
  else
  if ((Message.lParam shr 30) and 1)=1
      then Accion:='Repetida' {repressed}
      else Accion:='Pulsada'; {pressed}
0
Comment
Question by:ripper
4 Comments
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 500 total points
ID: 9798997
GetKeyNameText returns a localized textual description of the key like " ENTER" for the enter key.
0
 

Author Comment

by:ripper
ID: 9800128
That correct!

But, in the second reading get  is DOMAYUSCULAS821431051ENTRAR and nothing get with OnKeyPress ord(Key)= 13 (Enter Key)

I need a way for send enter key and cleaning ingress.

I use Delete procedure for both MAYUSCULAS AND ENTRAR but not tigger Enter Key!

Thanck...
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 148
oracle global variables 4 76
How to build JSON File in Delphi 6 3 45
read ebay data from mysql and post to ebay 2 42
Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question