barcode-simulator icon indicating copy to clipboard operation
barcode-simulator copied to clipboard

The simulator skips the first characters of the barcode

Open thomaslevesque opened this issue 3 years ago • 2 comments

e.g. if I try to send "01234567", it will randomly send "234567", "34567", "4567", but never the full code

thomaslevesque avatar Mar 18 '21 08:03 thomaslevesque

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()))

shaybakov71 avatar Dec 04 '21 18:12 shaybakov71

Thread.Sleep(400); before this cycle can help

eugenicx avatar Feb 03 '23 19:02 eugenicx