barcode-simulator
barcode-simulator copied to clipboard
The simulator skips the first characters of the barcode
e.g. if I try to send "01234567", it will randomly send "234567", "34567", "4567", but never the full code
i'm not found solution for this bug (windows 10 bug?) and solved the problem like this
private static void StartSending(string text, int delay, Keys endKey = Keys.None) { for (int i=0;i< 10; i++) { SendKeys.SendWait(""); SendKeys.Flush(); Thread.Sleep(delay); } foreach (var s in text.Select(character => character.ToString()))
Thread.Sleep(400); before this cycle can help