The requirement is that when I launch the "Notepad" by my application button and keep the "Notepad" in focus, then I scan a bar-code using my bar-code scanner. There will be a string in the "Notepad" and the string is captured in my application in background via USB port.
Now the keyboard codes were captured by my winform application in the background, but I can not parse the keyboard codes to the real strings scanned by the scanner. For example, I got a real "abcDEFghi123" in the "Notepad", but I got a keyboard strings like "ABCShiftkeyDEFShiftkeyFGHID1D2D3" in my winform program and I got the strings"ABCDEFFGHI123" in the textbox control. So could anyone help me to parse the keyboard code strings to real strings "abcDEFghi123"? The Scanned barcode and real strings
And the sample code is My sample code developed by visual studio 2015
Any advice and suggestions will be greatly appreciated.