Author Topic: Windows program for intercepting and generating keyboard events with Lua  (Read 859 times)

0 Members and 1 Guest are viewing this topic.

Offline FrankBussTopic starter

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
I just wrote a scriptable Windows program for an application Dave mentioned on Twitter. The Australian Post 2D barcodes contain a lot more digits than just the tracking code. The barcode scanner acts as a keyboard and sends the digits as keyboard events. With my application it is possible to intercept the digits and forward just the tracking ID, which is part of the long number. Here is the project:

https://github.com/FrankBuss/LuaKeyboardHelper

The sample script should work for Dave. Might be improved by detecting a start char, because now it works with timeouts, which delays normal digit inputs. But can be improved in script.lua by lowering keyTimeout. It can be used for other tasks as well, and the C++ program is easy to extend to do other things from the Lua script.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf