Solved

Hook keyboard and barcode scanner problem

Posted on 2003-11-21
4
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
creating threads in delphi 1 161
Delphi: ForceDirectory plain function 7 49
Dynamically Created Query 3 70
Delphi...Split view - idea? 1 114
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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:
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.

756 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