Solved

Hook keyboard and barcode scanner problem

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The aim of this article is to help you solve the error "Cannot insert the value NULL into column 'ShortDescription', table 'albert_store.dbo.Nop_Product'; column does not allow nulls. UPDATE fails." problem and allow you to continue updating your No…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
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…

707 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

12 Experts available now in Live!

Get 1:1 Help Now