Solved

Hook keyboard and barcode scanner problem

Posted on 2003-11-21
4
552 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Learn about the eCommerce marketing trends for the year ahead.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now